Minor improvements at startup

Found due to expiry date
This commit is contained in:
Klaus Basan
2017-01-01 04:37:29 +01:00
committed by Mathew Sutcliffe
parent 683cffd42b
commit 2821cd5213
6 changed files with 15 additions and 6 deletions

View File

@@ -873,14 +873,15 @@ namespace BlackCore
// help/version
if (this->m_parser.isSet(this->m_cmdHelp))
{
// Important parser help will already stop application
// Important: parser help will already stop application
this->cmdLineHelpMessage();
return true;
return false;
}
if (this->m_parser.isSet(this->m_cmdVersion))
{
// Important: version will already stop application
this->cmdLineVersionMessage();
return true;
return false;
}
// dev.

View File

@@ -244,6 +244,7 @@ namespace BlackCore
//! Parses and handles the standard options such as help, version, parse error
//! \note in some cases (error, version, help) application is terminated during this step
//! \sa parsingHookIn
//! \return true means to continue, false to stop
bool parse();
//! @}