Fix another problem with auto-completing arguments

refs #7378
This commit is contained in:
Gunnar Beutner 2014-10-15 09:41:54 +02:00
parent ce6f7ace89
commit 65579942ad
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi
if (autoindex < argc)
aword = argv[autoindex];
if (autoindex - 1 > best_match.size())
if (autoindex - 1 > best_match.size() && !command)
return;
} else
std::cout << "Supported commands: " << std::endl;