mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
#10728: the default for printing help is sys.stdout, not stderr.
This commit is contained in:
parent
77570e2d0e
commit
32e1771daf
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue