[issue26645] argparse prints help messages to stdout instead of stderr by default

Serhiy Storchaka report at bugs.python.org
Sat Mar 26 12:20:04 EDT 2016


Serhiy Storchaka added the comment:

`grep --help` outputs to stdout. `grep -h` outputs to stderr, because this is error, there is no the `-h` flag. The same for git and most other command line tools.

argparse follows this behavior. There is no bug.

----------
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26645>
_______________________________________


More information about the Python-bugs-list mailing list