mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix exit code of --help and --version, and test them in CI
Corrects prior regression which caused ERROR output and exit code of 1.
(cherry picked from commit d38d76d039)
This commit is contained in:
committed by
Rémi Verschelde
parent
da78e92321
commit
861e155543
@@ -103,7 +103,10 @@ int iphone_main(int argc, char **argv, String data_dir, String cache_dir) {
|
||||
printf("os created\n");
|
||||
Error err = Main::setup(fargv[0], argc - 1, &fargv[1], false);
|
||||
printf("setup %i\n", err);
|
||||
if (err != OK) {
|
||||
|
||||
if (err == ERR_HELP) { // Returned by --help and --version, so success.
|
||||
return 0;
|
||||
} else if (err != OK) {
|
||||
return 255;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user