1. Armin Rigo
  2. cpython-withatomic


bitdancer  committed 8adb75c

#10728: the default for printing help is sys.stdout, not stderr.

  • Participants
  • Parent commits 7ac03ec
  • Branches default

Comments (0)

Files changed (1)

File Doc/library/argparse.rst

View file
 .. 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
 .. 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: