Skip to content
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Doc/library/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ The ``deprecated`` keyword argument of
specifies if the argument is deprecated and will be removed
in the future.
For arguments, if ``deprecated`` is ``True``, then a warning will be
printed to standard error when the argument is used::
printed to :data:`sys.stdout` when the argument is used::

>>> import argparse
>>> parser = argparse.ArgumentParser(prog='snake.py')
Expand Down Expand Up @@ -2235,8 +2235,8 @@ Exiting methods
.. method:: ArgumentParser.exit(status=0, message=None)

This method terminates the program, exiting with the specified *status*
and, if given, it prints a *message* before that. The user can override
this method to handle these steps differently::
and, if given, it prints a *message* to :data:`sys.stdout` before that.
The user can override this method to handle these steps differently::

class ErrorCatchingArgumentParser(argparse.ArgumentParser):
def exit(self, status=0, message=None):
Expand All @@ -2246,8 +2246,8 @@ Exiting methods

.. method:: ArgumentParser.error(message)

This method prints a usage message including the *message* to the
standard error and terminates the program with a status code of 2.
This method prints a usage message, including the *message*, to
:data:`sys.stdout` and terminates the program with a status code of 2.


Intermixed parsing
Expand Down
Loading