summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-12-18 16:39:06 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-12-18 16:39:06 (GMT)
commit32e1771daf0ebbde326d91dede4b9cfae6e74f27 (patch)
tree35aeeda075ed2446a7e930be8af8bbcb1621d2a0 /Doc
parent77570e2d0e6e14de534eb65049ceb3a1a789164c (diff)
downloadcpython-32e1771daf0ebbde326d91dede4b9cfae6e74f27.zip
cpython-32e1771daf0ebbde326d91dede4b9cfae6e74f27.tar.gz
cpython-32e1771daf0ebbde326d91dede4b9cfae6e74f27.tar.bz2
#10728: the default for printing help is sys.stdout, not stderr.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/argparse.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 72878c5..42f9c42 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1658,14 +1658,14 @@ are available:
.. method:: ArgumentParser.print_usage(file=None)
Print a brief description of how the :class:`ArgumentParser` should be
- invoked on the command line. If *file* is ``None``, :data:`sys.stderr` is
+ invoked on the command line. If *file* is ``None``, :data:`sys.stdout` is
assumed.
.. method:: ArgumentParser.print_help(file=None)
Print a help message, including the program usage and information about the
arguments registered with the :class:`ArgumentParser`. If *file* is
- ``None``, :data:`sys.stderr` is assumed.
+ ``None``, :data:`sys.stdout` is assumed.
There are also variants of these methods that simply return a string instead of
printing it: