Further cleanup in the error logic for commands - the system now gives resonable suggestions for all commands.
This commit is contained in:
parent
181abb84a8
commit
e4006bf386
3 changed files with 10 additions and 6 deletions
|
|
@ -126,7 +126,6 @@ class CmdHelp(Command):
|
|||
if not suggestions:
|
||||
suggestions = [sugg for sugg in vocabulary if sugg != query and sugg.startswith(query)]
|
||||
|
||||
|
||||
# try an exact command auto-help match
|
||||
match = [cmd for cmd in all_cmds if cmd == query]
|
||||
if len(match) == 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue