diff --git a/code/nel/src/misc/cmd_args.cpp b/code/nel/src/misc/cmd_args.cpp index 39f4cb849..82863ba1b 100644 --- a/code/nel/src/misc/cmd_args.cpp +++ b/code/nel/src/misc/cmd_args.cpp @@ -321,13 +321,6 @@ bool CCmdArgs::parse(const std::vector &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 &argv) return false; } + // process help if requested or if required arguments are missing + if (haveLongArg("help") || (needRequiredArg() && !haveRequiredArg())) + { + displayHelp(); + return false; + } + return true; }