chore: make help command return exit code 0

This commit is contained in:
Jan 2024-01-23 23:14:25 +01:00
parent 05437cfd7d
commit 0b0b888b0d
No known key found for this signature in database
GPG Key ID: 44B581F78FF5C57C
4 changed files with 8 additions and 4 deletions

View File

@ -225,7 +225,8 @@ bool LinkerArgs::ParseArgs(const int argc, const char** argv, bool& shouldContin
if (m_argument_parser.IsOptionSpecified(OPTION_HELP)) if (m_argument_parser.IsOptionSpecified(OPTION_HELP))
{ {
PrintUsage(); PrintUsage();
return false; shouldContinue = false;
return true;
} }
// Check if the user wants to see the version // Check if the user wants to see the version

View File

@ -82,7 +82,8 @@ bool RawTemplaterArguments::ParseArgs(const int argc, const char** argv, bool& s
if (m_argument_parser.IsOptionSpecified(OPTION_HELP)) if (m_argument_parser.IsOptionSpecified(OPTION_HELP))
{ {
PrintUsage(); PrintUsage();
return false; shouldContinue = false;
return true;
} }
// Check if the user wants to see the version // Check if the user wants to see the version

View File

@ -264,7 +264,8 @@ bool UnlinkerArgs::ParseArgs(const int argc, const char** argv, bool& shouldCont
if (m_argument_parser.IsOptionSpecified(OPTION_HELP)) if (m_argument_parser.IsOptionSpecified(OPTION_HELP))
{ {
PrintUsage(); PrintUsage();
return false; shouldContinue = false;
return true;
} }
// Check if the user wants to see the version // Check if the user wants to see the version

View File

@ -139,7 +139,8 @@ bool ZoneCodeGeneratorArguments::ParseArgs(const int argc, const char** argv, bo
if (m_argument_parser.IsOptionSpecified(OPTION_HELP)) if (m_argument_parser.IsOptionSpecified(OPTION_HELP))
{ {
PrintUsage(); PrintUsage();
return false; shouldContinue = false;
return true;
} }
// Check if the user wants to see the version // Check if the user wants to see the version