There was an error while loading. Please reload this page.
1 parent a4e774f commit d6203d9Copy full SHA for d6203d9
1 file changed
Doc/library/argparse.rst
@@ -1235,7 +1235,7 @@ Action classes
1235
Action classes implement the Action API, a callable which returns a callable
1236
which processes arguments from the command-line. Any object which follows
1237
this API may be passed as the ``action`` parameter to
1238
-:method:`add_argument`.
+:meth:`add_argument`.
1239
1240
.. class:: Action(option_strings, dest, nargs=None, const=None, default=None,
1241
type=None, choices=None, required=False, help=None,
@@ -1244,7 +1244,7 @@ this API may be passed as the ``action`` parameter to
1244
Action objects are used by an ArgumentParser to represent the information
1245
needed to parse a single argument from one or more strings from the
1246
command line. The Action class must accept the two positional arguments
1247
-plus any keyword arguments passed to :method:`ArgumentParser.add_argument`
+plus any keyword arguments passed to :meth:`ArgumentParser.add_argument`
1248
except for the ``action`` itself.
1249
1250
Instances of Action (or return value of any callable to the ``action``
0 commit comments