summaryrefslogtreecommitdiffstats
path: root/Doc/library/argparse.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-08-04 06:44:59 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-08-04 06:44:59 (GMT)
commit2b24884f18cc81705336b5fd159c43ffceda9382 (patch)
tree475791276579002f7ae0bafff6042d03bb5bf8ad /Doc/library/argparse.rst
parentc3361b9ae13dc959bca5094cb61a09b6294aa11d (diff)
parentc0de59bfc39436b2bbdf011d90d47c10204a4278 (diff)
downloadcpython-2b24884f18cc81705336b5fd159c43ffceda9382.zip
cpython-2b24884f18cc81705336b5fd159c43ffceda9382.tar.gz
cpython-2b24884f18cc81705336b5fd159c43ffceda9382.tar.bz2
merge
Diffstat (limited to 'Doc/library/argparse.rst')
-rw-r--r--Doc/library/argparse.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 2ad2dec..7e7c802 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1235,7 +1235,7 @@ Action classes
Action classes implement the Action API, a callable which returns a callable
which processes arguments from the command-line. Any object which follows
this API may be passed as the ``action`` parameter to
-:method:`add_argument`.
+:meth:`add_argument`.
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None,
type=None, choices=None, required=False, help=None,
@@ -1244,7 +1244,7 @@ this API may be passed as the ``action`` parameter to
Action objects are used by an ArgumentParser to represent the information
needed to parse a single argument from one or more strings from the
command line. The Action class must accept the two positional arguments
-plus any keyword arguments passed to :method:`ArgumentParser.add_argument`
+plus any keyword arguments passed to :meth:`ArgumentParser.add_argument`
except for the ``action`` itself.
Instances of Action (or return value of any callable to the ``action``