summaryrefslogtreecommitdiff
path: root/tests/test_argparse_completer.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 /tests/test_argparse_completer.py
parent128d94accb0a6a8ab7197d26dab2cdafd83a1922 (diff)
downloadcmd2-git-920a9faa050441fbe064eed200f74dbdc0ba9663.tar.gz
Changed all uses of sub-command to subcommand
Diffstat (limited to 'tests/test_argparse_completer.py')
-rw-r--r--tests/test_argparse_completer.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_argparse_completer.py b/tests/test_argparse_completer.py
index daddf0dd..d1e115d4 100644
--- a/tests/test_argparse_completer.py
+++ b/tests/test_argparse_completer.py
@@ -65,14 +65,14 @@ class AutoCompleteTester(cmd2.Cmd):
# Top level parser for music command
music_parser = Cmd2ArgumentParser(description='Manage music', prog='music')
- # Add sub-commands to music
+ # Add subcommands to music
music_subparsers = music_parser.add_subparsers()
# music -> create
music_create_parser = music_subparsers.add_parser('create', help='Create music')
music_create_parser.set_defaults(func=_music_create)
- # Add sub-commands to music -> create
+ # Add subcommands to music -> create
music_create_subparsers = music_create_parser.add_subparsers()
# music -> create -> jazz
@@ -88,10 +88,10 @@ class AutoCompleteTester(cmd2.Cmd):
"""Music command"""
func = getattr(args, 'func', None)
if func is not None:
- # Call whatever sub-command function was selected
+ # Call whatever subcommand function was selected
func(self, args)
else:
- # No sub-command was provided, so call help
+ # No subcommand was provided, so call help
# noinspection PyTypeChecker
self.do_help('music')