Skip to content

Commit 8b6f4b3

Browse files
authored
Merge pull request #894 from python-cmd2/release_prep
Release prep
2 parents 566f38c + 5ff2c53 commit 8b6f4b3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 0.10.1 (February TBD, 2020)
1+
## 0.10.1 (February 19, 2020)
22
* Bug Fixes
33
* Corrected issue where the actual new value was not always being printed in do_set. This occurred in cases where
44
the typed value differed from what the setter had converted it to.
@@ -20,6 +20,10 @@
2020
* Removed undocumented `py run` command since it was replaced by `run_pyscript` a while ago
2121
* Renamed `AutoCompleter` to `ArgparseCompleter` for clarity
2222
* Custom `EmptyStatement` exception is no longer part of the documented public API
23+
* Notes
24+
* This is a beta release leading up to the 1.0.0 release
25+
* We intend no more breaking changes prior to 1.0.0
26+
* Just bug fixes, documentation updates, and enhancements
2327

2428
## 0.10.0 (February 7, 2020)
2529
* Enhancements

cmd2/cmd2.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ def _completion_for_command(self, text: str, line: str, begidx: int,
12541254

12551255
if func is not None and argparser is not None:
12561256
import functools
1257-
compfunc = functools.partial(self._autocomplete_default,
1257+
compfunc = functools.partial(self._complete_argparse_command,
12581258
argparser=argparser,
12591259
preserve_quotes=getattr(func, constants.CMD_ATTR_PRESERVE_QUOTES))
12601260
else:
@@ -1423,9 +1423,9 @@ def complete(self, text: str, state: int) -> Optional[str]:
14231423
rl_force_redisplay()
14241424
return None
14251425

1426-
def _autocomplete_default(self, text: str, line: str, begidx: int, endidx: int, *,
1427-
argparser: argparse.ArgumentParser, preserve_quotes: bool) -> List[str]:
1428-
"""Default completion function for argparse commands"""
1426+
def _complete_argparse_command(self, text: str, line: str, begidx: int, endidx: int, *,
1427+
argparser: argparse.ArgumentParser, preserve_quotes: bool) -> List[str]:
1428+
"""Completion function for argparse commands"""
14291429
from .argparse_completer import ArgparseCompleter
14301430
completer = ArgparseCompleter(argparser, self)
14311431
tokens, raw_tokens = self.tokens_for_completion(line, begidx, endidx)

0 commit comments

Comments
 (0)