mirror of https://github.com/Icinga/icinga2.git
parent
09e4641947
commit
af8aaf5bad
|
@ -274,13 +274,15 @@ int Main(void)
|
|||
appName = appName.SubStr(3, appName.GetLength() - 3);
|
||||
|
||||
std::cout << appName << " " << "- The Icinga 2 network monitoring daemon (version: "
|
||||
<< ConsoleColorTag(vm.count("version") ? Console_ForegroundRed : Console_Normal)
|
||||
<< Application::GetVersion()
|
||||
#ifdef _DEBUG
|
||||
<< "; debug"
|
||||
#endif /* _DEBUG */
|
||||
<< ConsoleColorTag(Console_Normal)
|
||||
<< ")" << std::endl << std::endl;
|
||||
|
||||
if (!command || vm.count("help")) {
|
||||
if ((!command || vm.count("help")) && !vm.count("version")) {
|
||||
std::cout << "Usage:" << std::endl
|
||||
<< " " << argv[0] << " ";
|
||||
|
||||
|
|
Loading…
Reference in New Issue