Always run best-matching command

This commit is contained in:
Luca Benci 2017-10-07 15:18:57 +02:00
parent 0d8edd54fb
commit 9d0dfd5726

View File

@ -218,7 +218,7 @@ class CommandParser:
for valid_command in cmdutils.cmd_dict:
if valid_command.find(cmdstr) == 0:
matches.append(valid_command)
if len(matches) == 1:
if len(matches) >= 1:
cmdstr = matches[0]
return cmdstr