Skip to content

Commit 6bf969c

Browse files
Indentation rectification
1 parent 1363eb8 commit 6bf969c

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

Doc/library/argparse.rst

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

17231723
Description of parameters:
17241724

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
1725+
* *title* - title for the sub-parser group in help output; by default "subcommands" if description is provided, otherwise uses title for positional arguments
17281726

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

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
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
17351730

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`)
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`)
17381732

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

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

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

17481739
* help_ - help for sub-parser group in help output, by default ``None``
17491740

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

17531743
Some example usage::
17541744

0 commit comments

Comments
 (0)