diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-05-22 20:20:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-23 00:20:20 +0000 |
commit | f5d0c4b1ea39e34e2e068264f18021a4f7412479 (patch) | |
tree | 5ca91be0d3f736b71ab50d59a81925e7391a321e /cli/args/flags.rs | |
parent | 4908d457580505d426ca06437a4f3b04731c5f24 (diff) |
feat: add lowercase `-v` version flag (#23750)
Ref https://github.com/denoland/deno/issues/5289
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 9de1c6057..1c18ce00f 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1236,6 +1236,15 @@ fn clap_root() -> Command { .long_version(long_version) // cause --unstable flags to display at the bottom of the help text .next_display_order(1000) + .disable_version_flag(true) + .arg( + Arg::new("version") + .short('V') + .short_alias('v') + .long("version") + .action(ArgAction::Version) + .help("Print version") + ) .arg( Arg::new("unstable") .long("unstable") |