summaryrefslogtreecommitdiff
path: root/examples/tab_autocompletion.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_autocompletion.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_autocompletion.py')
-rwxr-xr-xexamples/tab_autocompletion.py8
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