diff options
author | Jan Haller <bromeon@gmail.com> | 2022-07-02 01:05:20 +0200 |
---|---|---|
committer | Jan Haller <bromeon@gmail.com> | 2022-07-02 01:17:35 +0200 |
commit | d38d76d039a20bfcbc0a8612fee1c9a37cc21c78 (patch) | |
tree | b37c34b08060ca85c12720d7587178defd425658 /platform/osx/godot_main_osx.mm | |
parent | a2459c7d35eeaeea8b1d4fa9ce6c9cbe74f11643 (diff) |
Fix exit code of --help and --version, and test them in CI
Corrects prior regression which caused ERROR output and exit code of 1.
Diffstat (limited to 'platform/osx/godot_main_osx.mm')
-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; } |