[issue10728] argparse.ArgumentParser.print_help uses sys.stdout
Jan-Philip Gehrcke
report at bugs.python.org
Fri Feb 14 13:25:01 CET 2014
Jan-Philip Gehrcke added the comment:
The version action currently writes to stderr. The _VersionAction(Action)'s __call__() method finishes off with
parser.exit(message=formatter.format_help())
and parser.exit() by default writes to stderr.
Here, Steven says "Help is definitely intended to print to stdout." and I expected the same to happen regarding the version information. Why should it go to stderr?
I see that this is a minor problem and only if someone here agrees I would open an issue for that.
----------
nosy: +jgehrcke
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10728>
_______________________________________
More information about the Python-bugs-list
mailing list