summaryrefslogtreecommitdiff
path: root/examples/tab_autocomp_dynamic.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-10-05 13:39:37 -0400
committerGitHub <noreply@github.com>2018-10-05 13:39:37 -0400
commit9fee6105210b36201b5d2edc610f20bd67eac9f2 (patch)
tree5879270409a4992622da2933275ccaae30525ee6 /examples/tab_autocomp_dynamic.py
parent49cbec9969b4b53248d6097d8f395d92c74f7228 (diff)
parent734796b895bb85d67c651d9e8e8bf71e7d60b7e3 (diff)
downloadcmd2-git-9fee6105210b36201b5d2edc610f20bd67eac9f2.tar.gz
Merge pull request #568 from python-cmd2/sub-command
Using sub-command instead of subcommand where possible to be consistent with argparse
Diffstat (limited to 'examples/tab_autocomp_dynamic.py')
-rwxr-xr-xexamples/tab_autocomp_dynamic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/tab_autocomp_dynamic.py b/examples/tab_autocomp_dynamic.py
index 2c90b7a2..af77b204 100755
--- a/examples/tab_autocomp_dynamic.py
+++ b/examples/tab_autocomp_dynamic.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'
@@ -225,7 +225,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