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

Changed the usage printing to stderr if it is not from -h or --help #25

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

th0114nd
Copy link
Contributor

Unless a usage message is requested, it should be printed to stderr instead of stdout.
This would make it consistent with Python's docopt: (the highlighting indicates a grep match)
screen shot 2014-12-11 at 1 47 49 pm

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling f7b99ad on th0114nd:stderr_printing into 854c423 on docopt:master.

@mboersma
Copy link
Member

Yes, this is more correct behavior. Thanks for finding and fixing this @th0114nd!

mboersma added a commit that referenced this pull request Feb 16, 2016
Changed the usage printing to stderr if it is not from -h or --help
@mboersma mboersma merged commit 652f5b2 into docopt:master Feb 16, 2016
mboersma added a commit that referenced this pull request Feb 16, 2016
Changed the usage printing to stderr if it is not from -h or --help
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.

3 participants