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

View File

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