Skip to content

Commit 65d07f1

Browse files
[3.14] Use subcommand over sub-command in argparse docs (GH-142488) (#142587)
Use subcommand over sub-command in argparse docs (GH-142488) (cherry picked from commit 387f88c) Co-authored-by: Savannah Ostrowski <savannah@python.org>
1 parent fc40e7d commit 65d07f1

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
@@ -1669,7 +1669,7 @@ The Namespace object
16691669
Other utilities
16701670
---------------
16711671

1672-
Sub-commands
1672+
Subcommands
16731673
^^^^^^^^^^^^
16741674

16751675
.. method:: ArgumentParser.add_subparsers(*, [title], [description], [prog], \
@@ -1698,7 +1698,7 @@ Sub-commands
16981698
* *description* - description for the sub-parser group in help output, by
16991699
default ``None``
17001700

1701-
* *prog* - usage information that will be displayed with sub-command help,
1701+
* *prog* - usage information that will be displayed with subcommand help,
17021702
by default the name of the program and any positional arguments before the
17031703
subparser argument
17041704

@@ -1708,7 +1708,7 @@ Sub-commands
17081708
* action_ - the basic type of action to be taken when this argument is
17091709
encountered at the command line
17101710

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

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

0 commit comments

Comments
 (0)