Changed: Invert version and help checks

--HG--
branch : develop
hg/feature/material-editor
kervala 9 years ago
parent c844a0bdd1
commit c1d8d4e400

@ -321,17 +321,17 @@ bool CCmdArgs::parse(const std::vector<std::string> &argv)
}
}
// process help if requested or if required arguments are missing
if (haveLongArg("help") || (needRequiredArg() && !haveRequiredArg()))
// process version
if (haveLongArg("version"))
{
displayHelp();
displayVersion();
return false;
}
// process version
if (haveLongArg("version"))
// process help if requested or if required arguments are missing
if (haveLongArg("help") || (needRequiredArg() && !haveRequiredArg()))
{
displayVersion();
displayHelp();
return false;
}

Loading…
Cancel
Save