forked from OSchip/llvm-project
Look for an inexact match in just the commands before searching the alias commands as well.
llvm-svn: 180117
This commit is contained in:
parent
c63d73e59d
commit
038ff816e1
|
@ -848,9 +848,14 @@ CommandInterpreter::GetCommandObject (const char *cmd_cstr, StringList *matches)
|
|||
command_obj = GetCommandSP (cmd_cstr, true, true, matches).get();
|
||||
}
|
||||
|
||||
// Finally, if there wasn't an exact match among the aliases, look for an inexact match
|
||||
// in both the commands and the aliases.
|
||||
// If there wasn't an exact match among the aliases, look for an inexact match
|
||||
// in just the commands.
|
||||
|
||||
if (command_obj == NULL)
|
||||
command_obj = GetCommandSP(cmd_cstr, false, false, matches).get();
|
||||
|
||||
// Finally, if there wasn't an inexact match among the commands, look for an inexact
|
||||
// match in both the commands and aliases.
|
||||
if (command_obj == NULL)
|
||||
command_obj = GetCommandSP(cmd_cstr, true, false, matches).get();
|
||||
|
||||
|
|
Loading…
Reference in New Issue