mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #13540: Update references to Action class to match syntax used for other classes in this file.
This commit is contained in:
parent
eb0ef415d5
commit
79690ac1d0
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
^^^^^
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue