diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-02-19 11:40:11 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-19 11:40:11 -0500 |
commit | 8b6f4b3cc592ddc67cf598299aa378ea29132046 (patch) | |
tree | c7845573b2bf9b61785cefad1a3274b13ca19792 | |
parent | 566f38c158e6e758a75ab7d9a020fa9e798d194a (diff) | |
parent | 5ff2c532816a85b3221833dee04417354a8813e1 (diff) | |
download | cmd2-git-8b6f4b3cc592ddc67cf598299aa378ea29132046.tar.gz |
Merge pull request #894 from python-cmd2/release_prep0.10.1
Release prep
-rw-r--r-- | CHANGELOG.md | 6 | ||||
-rw-r--r-- | cmd2/cmd2.py | 8 |
2 files changed, 9 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d91aaca..c5ec37f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 0.10.1 (February TBD, 2020) +## 0.10.1 (February 19, 2020) * Bug Fixes * Corrected issue where the actual new value was not always being printed in do_set. This occurred in cases where the typed value differed from what the setter had converted it to. @@ -20,6 +20,10 @@ * Removed undocumented `py run` command since it was replaced by `run_pyscript` a while ago * Renamed `AutoCompleter` to `ArgparseCompleter` for clarity * Custom `EmptyStatement` exception is no longer part of the documented public API +* Notes + * This is a beta release leading up to the 1.0.0 release + * We intend no more breaking changes prior to 1.0.0 + * Just bug fixes, documentation updates, and enhancements ## 0.10.0 (February 7, 2020) * Enhancements diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 7b88eaf8..26031538 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -1254,7 +1254,7 @@ class Cmd(cmd.Cmd): if func is not None and argparser is not None: import functools - compfunc = functools.partial(self._autocomplete_default, + compfunc = functools.partial(self._complete_argparse_command, argparser=argparser, preserve_quotes=getattr(func, constants.CMD_ATTR_PRESERVE_QUOTES)) else: @@ -1423,9 +1423,9 @@ class Cmd(cmd.Cmd): rl_force_redisplay() return None - def _autocomplete_default(self, text: str, line: str, begidx: int, endidx: int, *, - argparser: argparse.ArgumentParser, preserve_quotes: bool) -> List[str]: - """Default completion function for argparse commands""" + def _complete_argparse_command(self, text: str, line: str, begidx: int, endidx: int, *, + argparser: argparse.ArgumentParser, preserve_quotes: bool) -> List[str]: + """Completion function for argparse commands""" from .argparse_completer import ArgparseCompleter completer = ArgparseCompleter(argparser, self) tokens, raw_tokens = self.tokens_for_completion(line, begidx, endidx) |