diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-27 00:24:29 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-08-27 00:24:29 -0400 |
commit | 33adefc98a07c8d2d0617076de29c52dbd3b4e19 (patch) | |
tree | 1ef18d9536345c21326c9044b8471361c75edc72 /examples | |
parent | 6af36b1753e0f70597def2210bd2b1279a44c188 (diff) | |
download | cmd2-git-33adefc98a07c8d2d0617076de29c52dbd3b4e19.tar.gz |
AutoCompleter only passes parsed_args to choices/completer functions that have an argument called 'parsed_args'
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/tab_autocompletion.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/tab_autocompletion.py b/examples/tab_autocompletion.py index 8eb17c9c..2142fe2e 100755 --- a/examples/tab_autocompletion.py +++ b/examples/tab_autocompletion.py @@ -16,7 +16,7 @@ actors = ['Mark Hamill', 'Harrison Ford', 'Carrie Fisher', 'Alec Guinness', 'Pet 'Jake Lloyd', 'Hayden Christensen', 'Christopher Lee'] -def query_actors(**_kwargs) -> List[str]: +def query_actors() -> List[str]: """Simulating a function that queries and returns a completion values""" return actors @@ -103,11 +103,11 @@ class TabCompleteExample(cmd2.Cmd): ] # noinspection PyMethodMayBeStatic - def instance_query_actors(self, **_kwargs) -> List[str]: + def instance_query_actors(self) -> List[str]: """Simulating a function that queries and returns a completion values""" return actors - def instance_query_movie_ids(self, **_kwargs) -> List[str]: + def instance_query_movie_ids(self) -> List[str]: """Demonstrates showing tabular hinting of tab completion information""" completions_with_desc = [] |