summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-05-08 09:52:10 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-05-08 09:52:10 -0400
commitccc92a283f76b535dff912b10aca4c9782bbde5c (patch)
treea2ca6ba941078023388dc3eafe9964a19065be83
parent6470d56fca8b585a1eaec72cee1e9ca8dc1f96ea (diff)
downloadcmd2-git-ccc92a283f76b535dff912b10aca4c9782bbde5c.tar.gz
Expanded readline warning to include other missing features
-rwxr-xr-xcmd2/cmd2.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index 8c234dab..24ced18e 100755
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -57,12 +57,12 @@ from cmd2.parsing import StatementParser, Statement
# Set up readline
from .rl_utils import rl_type, RlType
if rl_type == RlType.NONE:
- rl_err_msg = "Tab completion has been disabled since no supported version of readline was found\n"
- rl_err_msg += "To resolve this, install pyreadline on Windows or gnureadline on Mac\n"
+ rl_err_msg = "Readline features including tab completion and history have been disabled since no \n" \
+ "supported version of readline was found. To resolve this, install pyreadline on \n" \
+ "Windows or gnureadline on Mac.\n\n"
sys.stderr.write(Fore.LIGHTYELLOW_EX + rl_err_msg + Fore.RESET)
else:
from .rl_utils import rl_force_redisplay, readline
- from .argparse_completer import AutoCompleter, ACArgumentParser
if rl_type == RlType.PYREADLINE:
@@ -79,6 +79,8 @@ else:
import ctypes
from .rl_utils import readline_lib
+from .argparse_completer import AutoCompleter, ACArgumentParser
+
# Newer versions of pyperclip are released as a single file, but older versions had a more complicated structure
try:
from pyperclip.exceptions import PyperclipException