Further cleanup in the error logic for commands - the system now gives resonable suggestions for all commands.

This commit is contained in:
Griatch 2012-04-22 20:04:24 +02:00
parent 181abb84a8
commit e4006bf386
3 changed files with 10 additions and 6 deletions

View file

@ -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: