From 65579942ad2abf0142496788cc438b836d453e15 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 15 Oct 2014 09:41:54 +0200 Subject: [PATCH] Fix another problem with auto-completing arguments refs #7378 --- lib/base/clicommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/clicommand.cpp b/lib/base/clicommand.cpp index 5f31ac524..bf1018526 100644 --- a/lib/base/clicommand.cpp +++ b/lib/base/clicommand.cpp @@ -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; -- 2.40.0