diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-05 13:32:04 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-10-05 13:32:04 -0400 |
commit | 734796b895bb85d67c651d9e8e8bf71e7d60b7e3 (patch) | |
tree | 5879270409a4992622da2933275ccaae30525ee6 /examples/tab_autocompletion.py | |
parent | 49cbec9969b4b53248d6097d8f395d92c74f7228 (diff) | |
download | cmd2-git-734796b895bb85d67c651d9e8e8bf71e7d60b7e3.tar.gz |
Using sub-command instead of subcommand where possible to be consistent with argparse
Diffstat (limited to 'examples/tab_autocompletion.py')
-rwxr-xr-x | examples/tab_autocompletion.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 6a2e683e..ef283e9e 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -25,7 +25,7 @@ def query_actors() -> List[str]: class TabCompleteExample(cmd2.Cmd): - """ Example cmd2 application where we a base command which has a couple subcommands.""" + """ Example cmd2 application where we a base command which has a couple sub-commands.""" CAT_AUTOCOMPLETE = 'AutoComplete Examples' @@ -275,7 +275,7 @@ class TabCompleteExample(cmd2.Cmd): @cmd2.with_category(CAT_AUTOCOMPLETE) @cmd2.with_argparser(video_parser) def do_video(self, args): - """Video management command demonstrates multiple layers of subcommands being handled by AutoCompleter""" + """Video management command demonstrates multiple layers of sub-commands being handled by AutoCompleter""" func = getattr(args, 'func', None) if func is not None: # Call whatever subcommand function was selected @@ -356,7 +356,7 @@ class TabCompleteExample(cmd2.Cmd): @cmd2.with_category(CAT_AUTOCOMPLETE) @cmd2.with_argparser(media_parser) def do_media(self, args): - """Media management command demonstrates multiple layers of subcommands being handled by AutoCompleter""" + """Media management command demonstrates multiple layers of sub-commands being handled by AutoCompleter""" func = getattr(args, 'func', None) if func is not None: # Call whatever subcommand function was selected @@ -457,7 +457,7 @@ class TabCompleteExample(cmd2.Cmd): @cmd2.with_category(CAT_AUTOCOMPLETE) @cmd2.with_argparser(library_parser) def do_library(self, args): - """Media management command demonstrates multiple layers of subcommands being handled by AutoCompleter""" + """Media management command demonstrates multiple layers of sub-commands being handled by AutoCompleter""" func = getattr(args, 'func', None) if func is not None: # Call whatever subcommand function was selected |