Skip to content

Commit 42cc988

Browse files
committed
Updated comments and change log
1 parent 835e7dc commit 42cc988

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.9.21 (TBD, 2019)
2+
* Enhancements
3+
* Added `read_input()` function that is used to read from stdin. Unlike the Python built-in `input()`, it also has
4+
an argument to disable tab completion while input is being entered.
5+
16
## 0.9.20 (November 12, 2019)
27
* Bug Fixes
38
* Fixed bug where setting `use_ipython` to False removed ipy command from the entire `cmd2.Cmd` class instead of

cmd2/cmd2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ def read_input(self, prompt: str, *, allow_completion: bool = False) -> str:
20072007
orig_completer = None
20082008

20092009
def disable_completion():
2010-
"""Turn off completion during the select input line"""
2010+
"""Turn off completion while entering input"""
20112011
nonlocal orig_completer
20122012
nonlocal completion_disabled
20132013

@@ -2017,7 +2017,7 @@ def disable_completion():
20172017
completion_disabled = True
20182018

20192019
def enable_completion():
2020-
"""Restore tab completion when select is done reading input"""
2020+
"""Restore tab completion when finished entering input"""
20212021
nonlocal completion_disabled
20222022

20232023
if self._completion_supported() and completion_disabled:

0 commit comments

Comments
 (0)