From fa121f08ec7d987ac7c6d872559783f0c9ba04a1 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Mon, 21 Sep 2026 01:36:39 +0200 Subject: [PATCH] cli: expose --version on the root command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The flag was disabled in the initial commit, leaving the binary with no way to report its number — wrong for a release. clap scopes the automatic version flag to the root command (-V/--version), so the per-subcommand -v target-version options of pull and chlog are unaffected. --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8c7fe63..359e4cb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,6 @@ fn main() { LogWrapper::new(multi.clone(), logger).try_init().unwrap(); let matches = command!() .subcommand_required(true) - .disable_version_flag(true) .subcommand( Command::new("new") .about("Scaffold a new Debian source package (buildable right away)")