mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 15:46:18 +00:00
Changed: Invert version and help checks
--HG-- branch : develop
This commit is contained in:
parent
c844a0bdd1
commit
c1d8d4e400
1 changed files with 7 additions and 7 deletions
|
@ -321,13 +321,6 @@ bool CCmdArgs::parse(const std::vector<std::string> &argv)
|
|||
}
|
||||
}
|
||||
|
||||
// process help if requested or if required arguments are missing
|
||||
if (haveLongArg("help") || (needRequiredArg() && !haveRequiredArg()))
|
||||
{
|
||||
displayHelp();
|
||||
return false;
|
||||
}
|
||||
|
||||
// process version
|
||||
if (haveLongArg("version"))
|
||||
{
|
||||
|
@ -335,6 +328,13 @@ bool CCmdArgs::parse(const std::vector<std::string> &argv)
|
|||
return false;
|
||||
}
|
||||
|
||||
// process help if requested or if required arguments are missing
|
||||
if (haveLongArg("help") || (needRequiredArg() && !haveRequiredArg()))
|
||||
{
|
||||
displayHelp();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue