Skip to content

Commit 4b07ba3

Browse files
Docs: Document help and aliases for argparse.add_parser() (gh-84116)
1 parent 343648b commit 4b07ba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1673,6 +1673,7 @@ Sub-commands
16731673
:meth:`!add_subparsers` method. The :meth:`!add_subparsers` method is normally
16741674
called with no arguments and returns a special action object. This object
16751675
has a single method, :meth:`~_SubParsersAction.add_parser`:
1676+
16761677
.. method:: _SubParsersAction.add_parser(name, *, help=None, aliases=None, **kwargs)
16771678

16781679
Creates and returns a new :class:`!ArgumentParser` object for the
@@ -1687,7 +1688,7 @@ Sub-commands
16871688
for a ``'run'`` command).
16881689
:param kwargs: All other keyword arguments are passed directly to the
16891690
:class:`!ArgumentParser` constructor.
1690-
1691+
16911692
This returned :class:`!ArgumentParser` object can be modified as usual.
16921693

16931694
Description of parameters:

0 commit comments

Comments
 (0)