summaryrefslogtreecommitdiff
path: root/cmd2/argparse_custom.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-19 10:06:19 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-07-19 10:06:19 -0400
commit920a9faa050441fbe064eed200f74dbdc0ba9663 (patch)
tree8c9007dd44d5d3e1ef5a5171783acbc606f2ca29 /cmd2/argparse_custom.py
parent128d94accb0a6a8ab7197d26dab2cdafd83a1922 (diff)
downloadcmd2-git-920a9faa050441fbe064eed200f74dbdc0ba9663.tar.gz
Changed all uses of sub-command to subcommand
Diffstat (limited to 'cmd2/argparse_custom.py')
-rw-r--r--cmd2/argparse_custom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py
index 8da47461..090abde1 100644
--- a/cmd2/argparse_custom.py
+++ b/cmd2/argparse_custom.py
@@ -26,7 +26,7 @@ value with no upper bound, use a 1-item tuple (min,)
Tab Completion:
cmd2 uses its AutoCompleter class to enable argparse-based tab completion on all commands that use the
- @with_argparse wrappers. Out of the box you get tab completion of commands, sub-commands, and flag names,
+ @with_argparse wrappers. Out of the box you get tab completion of commands, subcommands, and flag names,
as well as instructive hints about the current argument that print when tab is pressed. In addition,
you can add tab completion for each argument's values using parameters passed to add_argument().
@@ -646,7 +646,7 @@ class Cmd2ArgumentParser(argparse.ArgumentParser):
def add_subparsers(self, **kwargs):
"""Custom override. Sets a default title if one was not given."""
if 'title' not in kwargs:
- kwargs['title'] = 'sub-commands'
+ kwargs['title'] = 'subcommands'
return super().add_subparsers(**kwargs)