std::cout << std::endl << std::endl
<< command->GetDescription();
}
+
+ std::cout << "\n";
}
if (vm.count("version")) {
}
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;
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;