Skip to content

Commit

Permalink
remove duplicate block
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanpulver committed Jun 28, 2024
1 parent 0f3a76a commit dd4d170
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions safety/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dd4d170

Please sign in to comment.