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 /cmd2/argparse_custom.py | |
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 'cmd2/argparse_custom.py')
-rw-r--r-- | cmd2/argparse_custom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd2/argparse_custom.py b/cmd2/argparse_custom.py index 56fb57ea..5071989d 100644 --- a/cmd2/argparse_custom.py +++ b/cmd2/argparse_custom.py @@ -44,7 +44,7 @@ Tab Completion: generated when the user hits tab. Example: - def my_choices_function(**kwargs): + def my_choices_function(): ... return my_generated_list @@ -56,7 +56,7 @@ Tab Completion: cases where the list of choices being generated relies on state data of the cmd2-based app Example: - def my_choices_method(self, **kwargs): + def my_choices_method(self): ... return my_generated_list @@ -66,7 +66,7 @@ Tab Completion: function. completer_method should be used in those cases. Example: - def my_completer_function(text, line, begidx, endidx, **kwargs): + def my_completer_function(text, line, begidx, endidx): ... return completions parser.add_argument('-o', '--options', completer_function=my_completer_function) |