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:
Jim Ingham 2010-12-01 00:42:17 +00:00
parent 4472801765
commit 97253e62e9
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ CommandObjectHelp::Execute (Args& command, CommandReturnObject &result)
&matches);
if (found_cmd == NULL)
all_okay = false;
else if (matches.GetSize() != 1)
else if (matches.GetSize() > 1)
all_okay = false;
else
sub_cmd_obj = found_cmd;