From: Gunnar Beutner Date: Wed, 15 Oct 2014 07:41:54 +0000 (+0200) Subject: Fix another problem with auto-completing arguments X-Git-Tag: v2.2.0~386 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65579942ad2abf0142496788cc438b836d453e15;p=icinga2 Fix another problem with auto-completing arguments refs #7378 --- 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;