Always run best-matching command
This commit is contained in:
parent
0d8edd54fb
commit
9d0dfd5726
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user