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/windows/godot_windows.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'platform/windows') diff --git a/platform/windows/godot_windows.cpp b/platform/windows/godot_windows.cpp index 8de3ef294a..72920d2816 100644 --- a/platform/windows/godot_windows.cpp +++ b/platform/windows/godot_windows.cpp @@ -166,6 +166,10 @@ int widechar_main(int argc, wchar_t **argv) { delete[] argv_utf8[i]; } delete[] argv_utf8; + + if (err == ERR_HELP) { // Returned by --help and --version, so success. + return 0; + } return 255; } -- cgit v1.2.3