diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-12 11:24:57 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2019-07-12 11:24:57 -0400 |
commit | 98dd8cf6a5e03e33a383c64bff4ff4b1bf2804cf (patch) | |
tree | 4d4d994336e4b9750bf5443ce70064d267dcc9fd | |
parent | 938bb97c9abc921a0cdb6c8618bf8deb03d7c78f (diff) | |
download | cmd2-git-98dd8cf6a5e03e33a383c64bff4ff4b1bf2804cf.tar.gz |
Updated docs
-rw-r--r-- | CHANGELOG.md | 3 | ||||
-rw-r--r-- | cmd2/argparse_completer.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 7885e936..dfb0dfc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ * Since it can be useful for creating [post-parsing hooks](https://cmd2.readthedocs.io/en/latest/features/hooks.html#postparsing-hooks) * Completely overhauled the interface for adding tab completion to argparse arguments. See enhancements for more details. * `ACArgumentParser` is now called `Cmd2ArgParser` + * Moved `basic_complete` to utils.py + * Made optional arguments on the following completer methods keyword-only: + `delimiter_complete`, `flag_based_complete`, `index_based_complete`. `path_complete`, `shell_cmd_complete` ## 0.9.14 (June 29, 2019) * Enhancements diff --git a/cmd2/argparse_completer.py b/cmd2/argparse_completer.py index 1e2a782a..9109f518 100644 --- a/cmd2/argparse_completer.py +++ b/cmd2/argparse_completer.py @@ -327,7 +327,7 @@ class AutoCompleter(object): self._print_arg_hint(flag_arg_state.action) return [] - # Otherwise check if we are completing a positional's argument + # Otherwise check if we have a positional to complete elif pos_arg_state is not None or next_pos_arg_index < len(self._positional_actions): # If we aren't current tracking a positional, then get the next positional arg to handle this token |