From ec249478658308ce1249f780f330c1c8c8d3306d Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Sat, 28 Jan 2023 10:47:47 -0500 Subject: [PATCH] Fix version shorthand detection to use -V instead of -v (#2301) Fixes a regression introduced in https://github.com/charliermarsh/ruff/commit/eda2be635062c37dfaaccb630d2510cf458f8dd6 (but not yet released to users). (`-v` is a real flag, but it's an alias for `--verbose`, not `--version`.) Closes #2299. --- ruff_cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruff_cli/src/main.rs b/ruff_cli/src/main.rs index a62db5f2ab..f2843b2f0a 100644 --- a/ruff_cli/src/main.rs +++ b/ruff_cli/src/main.rs @@ -44,7 +44,7 @@ fn inner_main() -> Result { if !Command::has_subcommand(rewrite_legacy_subcommand(arg)) && arg != "-h" && arg != "--help" - && arg != "-v" + && arg != "-V" && arg != "--version" && arg != "help" {