进入外壳时,我总是收到以下警告消息cmd2
:
Desktop david$ python3 client.py
Readline features including tab completion have been disabled because
no supported version of readline was found. To resolve this, install
pyreadline on Windows or gnureadline on Mac.
这是我知道的,我不是在寻找或解决这个问题。是否有一个选项可以抑制此错误消息cmd2
?顺便说一句,这里是警告消息的来源:https ://github.com/python-cmd2/cmd2/blob/f5af7d32fb468012f793eb039e05a86292e0e5bf/cmd2/cmd2.py#L132-L146 。