From d38d76d039a20bfcbc0a8612fee1c9a37cc21c78 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Sat, 2 Jul 2022 01:05:20 +0200 Subject: Fix exit code of --help and --version, and test them in CI Corrects prior regression which caused ERROR output and exit code of 1. --- platform/android/java_godot_lib_jni.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/android') diff --git a/platform/android/java_godot_lib_jni.cpp b/platform/android/java_godot_lib_jni.cpp index eaffe14b13..6e716c34a6 100644 --- a/platform/android/java_godot_lib_jni.cpp +++ b/platform/android/java_godot_lib_jni.cpp @@ -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 } -- cgit v1.2.3