summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md6
-rw-r--r--cmd2/cmd2.py8
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)