From dd4d1706c54380b81981544c67c969a15260670e Mon Sep 17 00:00:00 2001 From: Dylan Pulver Date: Fri, 28 Jun 2024 15:46:40 -0400 Subject: [PATCH] remove duplicate block --- safety/cli.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/safety/cli.py b/safety/cli.py index 983604ad..c0e6f100 100644 --- a/safety/cli.py +++ b/safety/cli.py @@ -127,14 +127,6 @@ def cli(ctx, debug, disable_optional_telemetry): """ Scan and secure Python projects against package vulnerabilities. To get started navigate to a Python project and run `safety scan`. """ - # Check if '--debug' is followed by '1' or 'true' and adjust the arguments - if '--debug' in sys.argv: - index = sys.argv.index('--debug') - if len(sys.argv) > index + 1: - next_arg = sys.argv[index + 1] - if next_arg in ('1', 'true'): - sys.argv[index] = '--debug' # Keep --debug - sys.argv.pop(index + 1) # Remove the next argument (1 or true) SafetyContext().safety_source = 'cli' telemetry = not disable_optional_telemetry