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] << " ";