Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix debug flag #542

Closed
wants to merge 10 commits into from
Closed

Fix debug flag #542

wants to merge 10 commits into from

Conversation

dylanpulver
Copy link
Collaborator

The debug flag is now fixed.
The following all work now:

 python -m safety --debug scan 
 python -m safety --debug 1 scan 
 python -m safety --debug true scan 

Because of the way the click group works, we need to preprocess the args and call preprocess_args() directly before the click decorators for the cli() function.

Added 3 new tests which are passing.

https://linear.app/pyup/issue/SFTY-915/-debug-flag-is-broken

@dylanpulver
Copy link
Collaborator Author

image

@dylanpulver
Copy link
Collaborator Author

moved to #546

@dylanpulver dylanpulver closed this Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant