-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Write help text to stderr instead of stdout #1069
Conversation
There is a typo! But changing over to |
Added a parameter for outputHelp, allowing users to specify if they want to output to stderr or not. Output is to stderr as default, "--help" outputs to stdout though. |
The failing test is due to one change you made earlier which I think is not correct. I'll let you look into it. Note 1: you can run the tests locally before you push. I do not want to change the public interface for I think getting the help-as-error to stderr in a tidy way is a tricky problem and harder than it looks. If you find the associated |
I added a question for original poster. I was thinking about the help-as-error case where user has no control, but that may not have been what the original poster was commenting on. |
Thanks @cengizhanbasak , I see both your original simple change and second try were consistent with what original poster was asking for. (I had a different case in mind.) However, there is a work-around, and I don't think this change offers enough to justify the extra parameter to #997 is one person's issue and has not attracted any likes in a couple of months of being open, and this change would not resolve the couple of previous issues that have mentioned Thank you for your contributions. |
Pull Request
#997
Problem
Informative functions were writing to stdout, causing problems in piping the output of the script.
Solution
Changed writing stdout to stderr.
ChangeLog