diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-02 10:25:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-02 10:25:03 +0200 |
commit | ec1348a72a510f68dfd2698bc368b29e2c72cbae (patch) | |
tree | 268019c51b5832ff48d135e761fc6af10f027bc7 /platform/osx | |
parent | 04bdd7eb9354c10abaa47e095dd45e89dc02cd0e (diff) | |
parent | d38d76d039a20bfcbc0a8612fee1c9a37cc21c78 (diff) |
Merge pull request #62618 from Bromeon/bugfix/exit-code
Fix exit code of --help and --version, and test them in CI
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/godot_main_osx.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/osx/godot_main_osx.mm b/platform/osx/godot_main_osx.mm index 053a7f4a1d..354edca096 100644 --- a/platform/osx/godot_main_osx.mm +++ b/platform/osx/godot_main_osx.mm @@ -83,7 +83,9 @@ int main(int argc, char **argv) { err = Main::setup(argv[0], argc - first_arg, &argv[first_arg]); } - if (err != OK) { + if (err == ERR_HELP) { // Returned by --help and --version, so success. + return 0; + } else if (err != OK) { return 255; } |