From bc4b4dff0f210fe7ad18e62d25bc9fd877e7257d Mon Sep 17 00:00:00 2001 From: Emmanouil Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 4 Apr 2024 00:27:20 +0300 Subject: [PATCH] Fix CLI exporting even though an unknown option has been provided Allowing exporting even if an unknown option has been provided could lead to unexpected results --- src/Main.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Main.gd b/src/Main.gd index 1507cfad7..e44f1e578 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -351,7 +351,9 @@ func _handle_cmdline_arguments() -> void: if arg.similarity(compare_arg) >= 0.4: print("Similar option: %s" % compare_arg) print("==========") + should_export = false get_tree().quit() + break if should_export: Export.external_export(project)