Skip to content

Commit 60980ee

Browse files
[3.13] Use subcommand over sub-command in argparse docs (GH-142488) (#142588)
Use subcommand over sub-command in argparse docs (GH-142488) (cherry picked from commit 387f88c) Co-authored-by: Savannah Ostrowski <[email protected]>
1 parent 71bdb38 commit 60980ee

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
@@ -1573,7 +1573,7 @@ The Namespace object
15731573
Other utilities
15741574
---------------
15751575

1576-
Sub-commands
1576+
Subcommands
15771577
^^^^^^^^^^^^
15781578

15791579
.. method:: ArgumentParser.add_subparsers(*, [title], [description], [prog], \
@@ -1602,7 +1602,7 @@ Sub-commands
16021602
* *description* - description for the sub-parser group in help output, by
16031603
default ``None``
16041604

1605-
* *prog* - usage information that will be displayed with sub-command help,
1605+
* *prog* - usage information that will be displayed with subcommand help,
16061606
by default the name of the program and any positional arguments before the
16071607
subparser argument
16081608

@@ -1612,7 +1612,7 @@ Sub-commands
16121612
* action_ - the basic type of action to be taken when this argument is
16131613
encountered at the command line
16141614

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

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

0 commit comments

Comments
 (0)