diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-19 10:06:19 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-19 10:06:19 -0400 |
commit | 920a9faa050441fbe064eed200f74dbdc0ba9663 (patch) | |
tree | 8c9007dd44d5d3e1ef5a5171783acbc606f2ca29 /tests/test_argparse_completer.py | |
parent | 128d94accb0a6a8ab7197d26dab2cdafd83a1922 (diff) | |
download | cmd2-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.py | 8 |
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') |