Skip to content

Commit

Permalink
Merge pull request #894 from python-cmd2/release_prep
Browse files Browse the repository at this point in the history
Release prep
  • Loading branch information
kmvanbrunt authored Feb 19, 2020
2 parents 566f38c + 5ff2c53 commit 8b6f4b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd2/cmd2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def _completion_for_command(self, text: str, line: str, begidx: int,

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:
Expand Down Expand Up @@ -1423,9 +1423,9 @@ def complete(self, text: str, state: int) -> Optional[str]:
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)
Expand Down

0 comments on commit 8b6f4b3

Please sign in to comment.