cli: expose --version on the root command

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.
This commit is contained in:
2026-09-21 01:36:39 +02:00
parent ac83a939e3
commit fa121f08ec
-1
View File
@@ -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)")