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