forked from OSchip/llvm-project
GetCommandObject returns no matches in the match array when there is only one match. That's odd, but I don't want to change that right now, just cope with it where I'm doing the command matching.
llvm-svn: 120511
This commit is contained in:
parent
4472801765
commit
97253e62e9
|
@ -94,7 +94,7 @@ CommandObjectHelp::Execute (Args& command, CommandReturnObject &result)
|
||||||
&matches);
|
&matches);
|
||||||
if (found_cmd == NULL)
|
if (found_cmd == NULL)
|
||||||
all_okay = false;
|
all_okay = false;
|
||||||
else if (matches.GetSize() != 1)
|
else if (matches.GetSize() > 1)
|
||||||
all_okay = false;
|
all_okay = false;
|
||||||
else
|
else
|
||||||
sub_cmd_obj = found_cmd;
|
sub_cmd_obj = found_cmd;
|
||||||
|
|
Loading…
Reference in New Issue