summaryrefslogtreecommitdiff
path: root/examples/basic_completion.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-13 13:39:53 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2020-02-13 13:39:53 -0500
commit41019de4b55f42d17149c29d380358dc38347948 (patch)
tree896f769ab1d919132b51ee0dbf7006cf07f87961 /examples/basic_completion.py
parentc3e3c1c595d65ec4c5fa2c9dac88ffa30cf4738e (diff)
downloadcmd2-git-41019de4b55f42d17149c29d380358dc38347948.tar.gz
Removed dash from 'tab complete' string
Diffstat (limited to 'examples/basic_completion.py')
-rwxr-xr-xexamples/basic_completion.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/basic_completion.py b/examples/basic_completion.py
index 3750c2c6..f21f75fc 100755
--- a/examples/basic_completion.py
+++ b/examples/basic_completion.py
@@ -44,15 +44,15 @@ class BasicCompletion(cmd2.Cmd):
"""Completion function for do_flag_based"""
flag_dict = \
{
- # Tab-complete food items after -f and --food flags in command line
+ # Tab complete food items after -f and --food flags in command line
'-f': food_item_strs,
'--food': food_item_strs,
- # Tab-complete sport items after -s and --sport flags in command line
+ # Tab complete sport items after -s and --sport flags in command line
'-s': sport_item_strs,
'--sport': sport_item_strs,
- # Tab-complete using path_complete function after -p and --path flags in command line
+ # Tab complete using path_complete function after -p and --path flags in command line
'-p': self.path_complete,
'--path': self.path_complete,
}
@@ -67,9 +67,9 @@ class BasicCompletion(cmd2.Cmd):
"""Completion function for do_index_based"""
index_dict = \
{
- 1: food_item_strs, # Tab-complete food items at index 1 in command line
- 2: sport_item_strs, # Tab-complete sport items at index 2 in command line
- 3: self.path_complete, # Tab-complete using path_complete function at index 3 in command line
+ 1: food_item_strs, # Tab complete food items at index 1 in command line
+ 2: sport_item_strs, # Tab complete sport items at index 2 in command line
+ 3: self.path_complete, # Tab complete using path_complete function at index 3 in command line
}
return self.index_based_complete(text, line, begidx, endidx, index_dict=index_dict)