-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Quieter output on check-status #1100
Comments
Is this something that we want to implement? I know I would like this and I can work on it. |
@peruzzof what is your use case? Could you provide an example? It seems it could be solved by redirecting $ http --check-status --quiet pie.dev/status/500 2>/dev/null |
¥es, it is possible to redirect stderr to /dev/null. |
OK I see. We would be happy to improve the situation then. @dkreeft if you are motivated, we thought about allowing to repeat Example: # Current behavior, it should not be changed
$ http --check-status --quiet pie.dev/status/500
__main__.py: warning: HTTP 500 Internal Server Error
$ echo $?
5 # New behavior
# http --check-status --quit --quiet pie.dev/status/500
$ http --check-status -qq pie.dev/status/500
$ echo $?
5 We already have an option that can be repeated: |
What enhancement would you like to see?
I would like to disable all warnings when using --check-status together with --quiet (that is the behaviour prior to issue #1026 ). It can be implemented as another flag (--quieter or --no-warnings)
What problem does it solve?
I am using a script with some failing scenarios being handled by the return code and I prefer a cleaner output, without the warnings.
Provide any additional information, screenshots, or code examples below:
The text was updated successfully, but these errors were encountered: