]> granicus.if.org Git - icinga2/commitdiff
Fix another problem with auto-completing arguments
authorGunnar Beutner <gunnar@beutner.name>
Wed, 15 Oct 2014 07:41:54 +0000 (09:41 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Wed, 15 Oct 2014 07:41:54 +0000 (09:41 +0200)
refs #7378

lib/base/clicommand.cpp

index 5f31ac524326edcf2c0ccc8d441389f18d7cb06b..bf101852607d81162cf190c7a57340aa2e0104cd 100644 (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;