1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

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
This commit is contained in:
Emmanouil Papadeas 2024-04-04 00:27:20 +03:00
parent 04caa5f7f5
commit bc4b4dff0f

View file

@ -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)