Remove usage info from --version

fixes #8102
This commit is contained in:
Gunnar Beutner 2014-12-18 05:28:51 +01:00
parent 09e4641947
commit af8aaf5bad

View File

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