Commit 2dc80523 authored by Jason R. Coombs's avatar Jason R. Coombs

Issue #13540: Update references to Action class to match syntax used for other...

Issue #13540: Update references to Action class to match syntax used for other classes in this file.
parent 96350f77
...@@ -739,7 +739,7 @@ how the command-line arguments should be handled. The supplied actions are: ...@@ -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 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 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. and optionally the ``__init__`` method.
An example of a custom action:: An example of a custom action::
...@@ -762,7 +762,7 @@ An example of a custom action:: ...@@ -762,7 +762,7 @@ An example of a custom action::
>>> args >>> args
Namespace(bar='1', foo='2') Namespace(bar='1', foo='2')
For more details, see :class:`argparse.Action`. For more details, see :class:`Action`.
nargs nargs
^^^^^ ^^^^^
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment