From: R. David Murray Date: Sat, 18 Dec 2010 16:39:06 +0000 (+0000) Subject: #10728: the default for printing help is sys.stdout, not stderr. X-Git-Tag: v3.2b2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32e1771daf0ebbde326d91dede4b9cfae6e74f27;p=python #10728: the default for printing help is sys.stdout, not stderr. --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 72878c5474..42f9c42a51 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: