From d05ea4dbacbf11323beeecef54dad1aa7cc3e8ff Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 3 Feb 2023 09:41:09 -0500 Subject: [PATCH] Exit upon showing files with `--show-files` (#2543) --- ruff_cli/src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ruff_cli/src/main.rs b/ruff_cli/src/main.rs index 9b1f9b8d5c..4b156e71db 100644 --- a/ruff_cli/src/main.rs +++ b/ruff_cli/src/main.rs @@ -102,6 +102,7 @@ fn check(args: CheckArgs, log_level: LogLevel) -> Result { } if cli.show_files { commands::show_files(&cli.files, &pyproject_strategy, &overrides)?; + return Ok(ExitCode::SUCCESS); } // Extract options that are included in `Settings`, but only apply at the top