diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-03 18:54:11 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-03 18:54:11 (GMT) |
commit | 2b492032f2485f49a6ce0e4c26483eb97d8b795b (patch) | |
tree | aba9d9858713594812b0358d6f866967b3c33d1f /Doc/library/argparse.rst | |
parent | 69cd3463871050d13dbde037c675cb07c49a3fe8 (diff) | |
download | cpython-2b492032f2485f49a6ce0e4c26483eb97d8b795b.zip cpython-2b492032f2485f49a6ce0e4c26483eb97d8b795b.tar.gz cpython-2b492032f2485f49a6ce0e4c26483eb97d8b795b.tar.bz2 |
Issue #13540: Update references to Action class to match syntax used for other classes in this file.
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r-- | Doc/library/argparse.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index b76642c..b47d0a5 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -715,7 +715,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:: @@ -738,7 +738,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 ^^^^^ |