Skip to content

Commit 05213dd

Browse files
Indentation rectification 1
1 parent 6bf969c commit 05213dd

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

Doc/library/argparse.rst

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,23 +1722,33 @@ Subcommands
17221722

17231723
Description of parameters:
17241724

1725-
* *title* - title for the sub-parser group in help output; by default "subcommands" if description is provided, otherwise uses title for positional arguments
1725+
* *title* - title for the sub-parser group in help output; by default
1726+
"subcommands" if description is provided, otherwise uses title for
1727+
positional arguments
17261728

1727-
* *description* - description for the sub-parser group in help output, by default ``None``
1729+
* *description* - description for the sub-parser group in help output, by
1730+
default ``None``
17281731

1729-
* *prog* - usage information that will be displayed with subcommand help, by default the name of the program and any positional arguments before the subparser argument
1732+
* *prog* - usage information that will be displayed with subcommand help,
1733+
by default the name of the program and any positional arguments before the
1734+
subparser argument
17301735

1731-
* *parser_class* - class which will be used to create sub-parser instances, by default the class of the current parser (e.g. :class:`ArgumentParser`)
1736+
* *parser_class* - class which will be used to create sub-parser instances, by
1737+
default the class of the current parser (e.g. :class:`ArgumentParser`)
17321738

1733-
* action_ - the basic type of action to be taken when this argument is encountered at the command line
1739+
* action_ - the basic type of action to be taken when this argument is
1740+
encountered at the command line
17341741

1735-
* dest_ - name of the attribute under which subcommand name will be stored; by default ``None`` and no value is stored
1742+
* dest_ - name of the attribute under which subcommand name will be
1743+
stored; by default ``None`` and no value is stored
17361744

1737-
* required_ - Whether or not a subcommand must be provided, by default ``False`` (added in 3.7)
1745+
* required_ - Whether or not a subcommand must be provided, by default
1746+
``False`` (added in 3.7)
17381747

17391748
* help_ - help for sub-parser group in help output, by default ``None``
17401749

1741-
* metavar_ - string presenting available subcommands in help; by default it is ``None`` and presents subcommands in form {cmd1, cmd2, ..}
1750+
* metavar_ - string presenting available subcommands in help; by default it
1751+
is ``None`` and presents subcommands in form {cmd1, cmd2, ..}
17421752

17431753
Some example usage::
17441754

@@ -1887,7 +1897,10 @@ Subcommands
18871897

18881898

18891899
.. method:: _SubParsersAction.add_parser(name, *, help=None, aliases=None,
1890-
deprecated=False, **kwargs)
1900+
deprecated=False, **kwargs)
1901+
1902+
.. versionadded:: 3.13
1903+
Added the *deprecated* parameter.
18911904

18921905
Creates and returns a new :class:`!ArgumentParser` object for the
18931906
subcommand *name*.
@@ -1922,9 +1935,6 @@ Subcommands
19221935
chicken.py: warning: command 'fly' is deprecated
19231936
Namespace()
19241937

1925-
.. versionadded:: 3.13
1926-
Added the *deprecated* parameter.
1927-
19281938

19291939
All other keyword arguments are passed directly to the
19301940
:class:`!ArgumentParser` constructor.

0 commit comments

Comments
 (0)