summaryrefslogtreecommitdiff
path: root/test/argv2.lm
diff options
context:
space:
mode:
Diffstat (limited to 'test/argv2.lm')
-rw-r--r--test/argv2.lm14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/argv2.lm b/test/argv2.lm
index 9d7792ab..eb1ba790 100644
--- a/test/argv2.lm
+++ b/test/argv2.lm
@@ -1,3 +1,4 @@
+##### LM #####
lex
literal '-'
token file /^('-'|0)(^0)*/
@@ -74,3 +75,16 @@ for Item: item in Args {
}
}
+##### ARGS #####
+-qv -h -o output -iinput file --input=foo --input bar --help --verbose
+##### EXP #####
+single: q
+single: v
+single: h
+with opt: o -> output
+with opt: i -> input
+file: file
+long: input -> foo
+long: input -> bar
+long: help
+long: verbose