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
diff --git a/lldb/source/Commands/CommandObjectHelp.cpp b/lldb/source/Commands/CommandObjectHelp.cpp
index 7d52674..416bdd5 100644
--- a/lldb/source/Commands/CommandObjectHelp.cpp
+++ b/lldb/source/Commands/CommandObjectHelp.cpp
@@ -94,7 +94,7 @@
&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;