[issue10728] argparse.ArgumentParser.print_help uses sys.stdout
Feb. 14, 2014
12:25 p.m.
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@bugs.python.org> <http://bugs.python.org/issue10728> _______________________________________
4504
Age (days ago)
4504
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jan-Philip Gehrcke