Skip to content

Commit ccc92a2

Browse files
committed
Expanded readline warning to include other missing features
1 parent 6470d56 commit ccc92a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmd2/cmd2.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
# Set up readline
5858
from .rl_utils import rl_type, RlType
5959
if rl_type == RlType.NONE:
60-
rl_err_msg = "Tab completion has been disabled since no supported version of readline was found\n"
61-
rl_err_msg += "To resolve this, install pyreadline on Windows or gnureadline on Mac\n"
60+
rl_err_msg = "Readline features including tab completion and history have been disabled since no \n" \
61+
"supported version of readline was found. To resolve this, install pyreadline on \n" \
62+
"Windows or gnureadline on Mac.\n\n"
6263
sys.stderr.write(Fore.LIGHTYELLOW_EX + rl_err_msg + Fore.RESET)
6364
else:
6465
from .rl_utils import rl_force_redisplay, readline
65-
from .argparse_completer import AutoCompleter, ACArgumentParser
6666

6767
if rl_type == RlType.PYREADLINE:
6868

@@ -79,6 +79,8 @@
7979
import ctypes
8080
from .rl_utils import readline_lib
8181

82+
from .argparse_completer import AutoCompleter, ACArgumentParser
83+
8284
# Newer versions of pyperclip are released as a single file, but older versions had a more complicated structure
8385
try:
8486
from pyperclip.exceptions import PyperclipException

0 commit comments

Comments
 (0)