mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
26b9c5a81b
commit
5ddf5b3293
@ -285,6 +285,8 @@ int Main(void)
|
||||
std::cout << std::endl << std::endl
|
||||
<< command->GetDescription();
|
||||
}
|
||||
|
||||
std::cout << "\n";
|
||||
}
|
||||
|
||||
if (vm.count("version")) {
|
||||
@ -308,13 +310,10 @@ int Main(void)
|
||||
}
|
||||
|
||||
if (!command || vm.count("help")) {
|
||||
if (!command) {
|
||||
std::cout << std::endl;
|
||||
if (!command)
|
||||
CLICommand::ShowCommands(argc, argv, NULL);
|
||||
}
|
||||
|
||||
std::cout << std::endl
|
||||
<< visibleDesc << std::endl
|
||||
std::cout << visibleDesc << std::endl
|
||||
<< "Report bugs at <https://dev.icinga.org/>" << std::endl
|
||||
<< "Icinga home page: <http://www.icinga.org/>" << std::endl;
|
||||
return EXIT_SUCCESS;
|
||||
|
@ -289,6 +289,9 @@ void CLICommand::ShowCommands(int argc, char **argv, po::options_description *vi
|
||||
std::cout << " * " << boost::algorithm::join(vname, " ") << " (" << kv.second->GetShortDescription() << ")" << std::endl;
|
||||
}
|
||||
|
||||
if (!autocomplete)
|
||||
std::cout << std::endl;
|
||||
|
||||
if (command && autocomplete) {
|
||||
String aname, prefix, pword;
|
||||
const po::option_description *odesc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user