Skip to content

Commit 387f88c

Browse files
Use subcommand over sub-command in argparse docs (#142488)
1 parent ffc7172 commit 387f88c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/argparse.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ The Namespace object
16791679
Other utilities
16801680
---------------
16811681

1682-
Sub-commands
1682+
Subcommands
16831683
^^^^^^^^^^^^
16841684

16851685
.. method:: ArgumentParser.add_subparsers(*, [title], [description], [prog], \
@@ -1708,7 +1708,7 @@ Sub-commands
17081708
* *description* - description for the sub-parser group in help output, by
17091709
default ``None``
17101710

1711-
* *prog* - usage information that will be displayed with sub-command help,
1711+
* *prog* - usage information that will be displayed with subcommand help,
17121712
by default the name of the program and any positional arguments before the
17131713
subparser argument
17141714

@@ -1718,7 +1718,7 @@ Sub-commands
17181718
* action_ - the basic type of action to be taken when this argument is
17191719
encountered at the command line
17201720

1721-
* dest_ - name of the attribute under which sub-command name will be
1721+
* dest_ - name of the attribute under which subcommand name will be
17221722
stored; by default ``None`` and no value is stored
17231723

17241724
* required_ - Whether or not a subcommand must be provided, by default

0 commit comments

Comments
 (0)