Diffstat (limited to 'Main.gd')
-rw-r--r--Main.gd21
1 files changed, 19 insertions, 2 deletions
diff --git a/Main.gd b/Main.gd
index be0adc0..280c943 100644
--- a/Main.gd
+++ b/Main.gd
@@ -3,9 +3,26 @@ extends Node
func _ready():
var p = Parser.new()
- p.add_argument(Arg.new({triggers = ["-fly", "--fley"], n_args = 2, help = "i eat donkeys"}))
+ p.add_argument(
+ Arg.new(
+ {
+ triggers = ["-fly", "--fley"],
+ n_args = 2,
+ help = "i eat donkeys",
+ default = ["donkey kong", "ha"]
+ }
+ )
+ )
p.add_argument(Arg.new({triggers = ["-bard", "--flgersog"], n_args = 2, help = "me 4"}))
p.add_argument(Arg.new({triggers = ["--radiation"], n_args = "*", help = "i am radiation"}))
- p.add_argument(Arg.new({triggers=["-h", "--help", "-?"], help="show this help message and exit", action="store_true", dest="help"}))
+ p.add_argument(
+ Arg.new(
+ {
+ triggers = ["-h", "--help", "-?"],
+ help = "show this help message and exit",
+ action = "store_true"
+ }
+ )
+ )
print(p.parse_arguments())
print(p.help())