Fix version shorthand detection to use -V instead of -v (#2301)

Fixes a regression introduced in eda2be6350 (but not yet released to users). (`-v` is a real flag, but it's an alias for `--verbose`, not `--version`.)

Closes #2299.
This commit is contained in:
Charlie Marsh 2023-01-28 10:47:47 -05:00 committed by GitHub
parent 8038d32649
commit ec24947865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ fn inner_main() -> Result<ExitCode> {
if !Command::has_subcommand(rewrite_legacy_subcommand(arg)) if !Command::has_subcommand(rewrite_legacy_subcommand(arg))
&& arg != "-h" && arg != "-h"
&& arg != "--help" && arg != "--help"
&& arg != "-v" && arg != "-V"
&& arg != "--version" && arg != "--version"
&& arg != "help" && arg != "help"
{ {