From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 11 Dec 2025 17:48:30 +0000 (+0100) Subject: [3.13] Use subcommand over sub-command in argparse docs (GH-142488) (#142588) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60980eeded1ea709598472c6e449901ab0041aaf;p=thirdparty%2FPython%2Fcpython.git [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 387f88cac1e911672f6321f4fbb0a3af9710626d) Co-authored-by: Savannah Ostrowski --- diff --git a/Doc/library/argparse.rst b/Doc/library/argparse.rst index 004e8f82cca2..d8c7776ee41f 100644 --- a/Doc/library/argparse.rst +++ b/Doc/library/argparse.rst @@ -1573,7 +1573,7 @@ The Namespace object Other utilities --------------- -Sub-commands +Subcommands ^^^^^^^^^^^^ .. method:: ArgumentParser.add_subparsers(*, [title], [description], [prog], \ @@ -1602,7 +1602,7 @@ Sub-commands * *description* - description for the sub-parser group in help output, by default ``None`` - * *prog* - usage information that will be displayed with sub-command help, + * *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 @@ -1612,7 +1612,7 @@ Sub-commands * action_ - the basic type of action to be taken when this argument is encountered at the command line - * dest_ - name of the attribute under which sub-command name will be + * dest_ - name of the attribute under which subcommand name will be stored; by default ``None`` and no value is stored * required_ - Whether or not a subcommand must be provided, by default