mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-02 04:40:18 +02:00
parent
445376833c
commit
14d8366d05
@ -207,6 +207,9 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi
|
|||||||
if (autocomplete) {
|
if (autocomplete) {
|
||||||
if (autoindex < argc)
|
if (autoindex < argc)
|
||||||
aword = argv[autoindex];
|
aword = argv[autoindex];
|
||||||
|
|
||||||
|
if (autoindex - 1 > best_match.size())
|
||||||
|
return;
|
||||||
} else
|
} else
|
||||||
std::cout << "Supported commands: " << std::endl;
|
std::cout << "Supported commands: " << std::endl;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user