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
1 changed files with 3 additions and 1 deletions

View File

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