aboutsummaryrefslogtreecommitdiff
path: root/game/src/ArgumentParser.tscn
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-05-02 06:30:06 +0200
committer GitHub <noreply@github.com>2023-05-02 06:30:06 +0200
commitbe43b260128664756054a289cf9d22319def1f8a (patch)
tree56006651b7228d817b5ab9ec87bb71dd408cc5d1 /game/src/ArgumentParser.tscn
parent4a6965515afe26888d1f1eb9248e74a2bcb38afc (diff)
parent865e7aeca7c3090fee914b9ebde9490ef23d3559 (diff)
Merge pull request #102 from Spartan322/refine/argument-parsing
Diffstat (limited to 'game/src/ArgumentParser.tscn')
-rw-r--r--game/src/ArgumentParser.tscn24
1 files changed, 24 insertions, 0 deletions
diff --git a/game/src/ArgumentParser.tscn b/game/src/ArgumentParser.tscn
new file mode 100644
index 0000000..964c19e
--- /dev/null
+++ b/game/src/ArgumentParser.tscn
@@ -0,0 +1,24 @@
+[gd_scene load_steps=5 format=3 uid="uid://dayjmgc34tqo6"]
+
+[ext_resource type="Script" path="res://src/ArgumentParser.gd" id="1_8e7gi"]
+[ext_resource type="Script" path="res://src/ArgumentOption.gd" id="2_f3c26"]
+
+[sub_resource type="Resource" id="Resource_tq3y4"]
+script = ExtResource("2_f3c26")
+name = &"help"
+aliases = Array[StringName]([&"h"])
+type = 1
+description = "Displays help and quits."
+default_value = false
+
+[sub_resource type="Resource" id="Resource_j1to4"]
+script = ExtResource("2_f3c26")
+name = &"game-debug"
+aliases = Array[StringName]([&"d", &"-debug", &"-debug-mode"])
+type = 1
+description = "Start in debug mode."
+default_value = false
+
+[node name="ArgumentParser" type="Node"]
+script = ExtResource("1_8e7gi")
+option_array = Array[ExtResource("2_f3c26")]([SubResource("Resource_tq3y4"), SubResource("Resource_j1to4")])