mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 19:24:18 +00: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.
This commit is contained in:
parent
a2459c7d35
commit
d38d76d039
9 changed files with 24 additions and 4 deletions
|
|
@ -157,6 +157,7 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_setup(JNIEnv *env, jc
|
|||
memfree(cmdline);
|
||||
}
|
||||
|
||||
// Note: --help and --version return ERR_HELP, but this should be translated to 0 if exit codes are propagated.
|
||||
if (err != OK) {
|
||||
return; // should exit instead and print the error
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue