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

--quiet and --silent options, to reduce or eliminate output when passing #384

Closed
Zac-HD opened this issue Sep 13, 2018 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@Zac-HD
Copy link
Member

Zac-HD commented Sep 13, 2018

I run Bandit in CI for a few repos now, and it's been both useful when finding potential issues (and one actual problem - thanks!) and annoyingly verbose when everything is OK. I just don't want contributors to have to scroll through 27 lines of output when silence would be fine and the failure is coming from some other tool.

So in the Unix tradition of "silence is golden", I would love a --quiet and a --silent option to take output away, just as the existing --verbose and --debug options add more.

@ericwb ericwb added the enhancement New feature or request label Sep 13, 2018
@ericwb ericwb self-assigned this Sep 14, 2018
ericwb added a commit that referenced this issue Sep 16, 2018
This commit adds a new command line argument to hide output
when the result of the scan is passing with no warning/errors.

The new option is -q or --quiet. It also allows --silent to be
consistent with the GNU standard on CLI options [1].

[1] http://www.gnu.org/prep/standards/html_node/Option-Table.html#Option-Table

Signed-off-by: Eric Brown <browne@vmware.com>

Fixes Issue #384
@ericwb ericwb closed this as completed Sep 18, 2018
@Zac-HD
Copy link
Member Author

Zac-HD commented Sep 18, 2018

Thanks @ericwb! I look forward to using this when it's released 😄

@golightlyb
Copy link

Can I be cheeky and ask is there an ETA on the next pypi release including this? Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants