From: Jason R. Coombs Date: Sun, 3 Aug 2014 18:54:11 +0000 (-0400) Subject: Issue #13540: Update references to Action class to match syntax used for other classe... X-Git-Tag: v3.3.6rc1~11^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79690ac1d0b25c048768e9d3870b475e235f9e7a;p=python Issue #13540: Update references to Action class to match syntax used for other classes in this file. --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 547ad14764..0b403b758f 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -739,7 +739,7 @@ how the command-line arguments should be handled. The supplied actions are: You may also specify an arbitrary action by passing an Action subclass or other object that implements the same interface. The recommended way to do -this is to extend :class:`argparse.Action`, overriding the ``__call__`` method +this is to extend :class:`Action`, overriding the ``__call__`` method and optionally the ``__init__`` method. An example of a custom action:: @@ -762,7 +762,7 @@ An example of a custom action:: >>> args Namespace(bar='1', foo='2') -For more details, see :class:`argparse.Action`. +For more details, see :class:`Action`. nargs ^^^^^