aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Autoload/Argument/ArgumentParser.gd
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-08-28 15:39:45 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-09-07 21:25:33 +0200
commit0e408c82a010aba96915753d56f83349256f4231 (patch)
treed32a9538df7fb451fbbcee91a11f88e5b6d3701a /game/src/Game/Autoload/Argument/ArgumentParser.gd
parent06816f3b7fd8dd7a2eba7031e0646c250077c96b (diff)
Add Window Override:
Hides window for help argument (`./program -- --help`) Hides window until video options loading is complete
Diffstat (limited to 'game/src/Game/Autoload/Argument/ArgumentParser.gd')
-rw-r--r--game/src/Game/Autoload/Argument/ArgumentParser.gd4
1 files changed, 1 insertions, 3 deletions
diff --git a/game/src/Game/Autoload/Argument/ArgumentParser.gd b/game/src/Game/Autoload/Argument/ArgumentParser.gd
index b463c74..b012215 100644
--- a/game/src/Game/Autoload/Argument/ArgumentParser.gd
+++ b/game/src/Game/Autoload/Argument/ArgumentParser.gd
@@ -309,10 +309,8 @@ Options:
("Type: %s - Default Value: %s" % [option.get_type_string(), option.default_value]).rpad(45),
option.description
])
+
func _ready():
if Engine.is_editor_hint(): return
_set_argument_setting()
GameDebug._singleton = GameDebug.new()
- if get_argument(&"help"):
- _print_help()
- get_tree().quit()