You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Return exit code 0 when running --version or --help
Fixes https://github.com/godotengine/godot/issues/83661
(cherry picked from commit 7c3d37ec1d)
This commit is contained in:
@@ -35,8 +35,12 @@ int main(int argc, char *argv[]) {
|
|||||||
OS_Server os;
|
OS_Server os;
|
||||||
|
|
||||||
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
Error err = Main::setup(argv[0], argc - 1, &argv[1]);
|
||||||
if (err != OK)
|
if (err != OK) {
|
||||||
|
if (err == ERR_HELP) { // Returned by --help and --version, so success.
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return 255;
|
return 255;
|
||||||
|
}
|
||||||
|
|
||||||
if (Main::start())
|
if (Main::start())
|
||||||
os.run(); // it is actually the OS that decides how to run
|
os.run(); // it is actually the OS that decides how to run
|
||||||
|
|||||||
Reference in New Issue
Block a user