Skip to content

Commit 1363eb8

Browse files
little bit rectification
1 parent 2bea80e commit 1363eb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/argparse.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,20 +1700,20 @@ The Namespace object
17001700
Other utilities
17011701
---------------
17021702

1703-
Sub-commands
1703+
Subcommands
17041704
^^^^^^^^^^^^
17051705

17061706
.. method:: ArgumentParser.add_subparsers(*, [title], [description], [prog], \
17071707
[parser_class], [action], \
17081708
[dest], [required], \
17091709
[help], [metavar])
17101710

1711-
Many programs split up their functionality into a number of sub-commands,
1712-
for example, the ``svn`` program can invoke sub-commands like ``svn
1711+
Many programs split up their functionality into a number of subcommands,
1712+
for example, the ``svn`` program can invoke subcommands like ``svn
17131713
checkout``, ``svn update``, and ``svn commit``. Splitting up functionality
17141714
this way can be a particularly good idea when a program performs several
17151715
different functions which require different kinds of command-line arguments.
1716-
:class:`ArgumentParser` supports the creation of such sub-commands with the
1716+
:class:`ArgumentParser` supports the creation of such subcommands with the
17171717
:meth:`!add_subparsers` method. The :meth:`!add_subparsers` method is normally
17181718
called with no arguments and returns a special action object. This object
17191719
has a single method, :meth:`~_SubParsersAction.add_parser`, which takes a

0 commit comments

Comments
 (0)