mirror of https://github.com/astral-sh/ruff
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:
parent
8038d32649
commit
ec24947865
|
|
@ -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"
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue