summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-09-04 15:50:14 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-09-04 15:50:14 (GMT)
commitceb0e1d751c927ec0a835cae12f54b4bd339b14c (patch)
treeaa9a7c30755b4a4cb64817b4b129018d9619a776 /Doc/library
parent4ec38f6b54ee8def8aa3f2232595616da0f070a4 (diff)
downloadcpython-ceb0e1d751c927ec0a835cae12f54b4bd339b14c.zip
cpython-ceb0e1d751c927ec0a835cae12f54b4bd339b14c.tar.gz
cpython-ceb0e1d751c927ec0a835cae12f54b4bd339b14c.tar.bz2
the correct role is :meth: not :method:
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/argparse.rst14
1 files changed, 6 insertions, 8 deletions
diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst
index 9cffa8d..409d688 100644
--- a/Doc/library/argparse.rst
+++ b/Doc/library/argparse.rst
@@ -1213,19 +1213,17 @@ 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`.
+which processes arguments from the command-line. Any object which follows this
+API may be passed as the ``action`` parameter to :meth:`add_argument`.
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None,
type=None, choices=None, required=False, help=None,
metavar=None)
-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`
-except for the ``action`` itself.
+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 :meth:`ArgumentParser.add_argument` except for the ``action`` itself.
Instances of Action (or return value of any callable to the ``action``
parameter) should have attributes "dest", "option_strings", "default", "type",