From 5b28823d6be71422f6a3280ddb3d10431a58f6c9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 8 Oct 2017 18:25:50 -0700 Subject: Fixed command line for no args. --- nomsu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nomsu.lua') diff --git a/nomsu.lua b/nomsu.lua index 6fac8bb..29879b9 100644 --- a/nomsu.lua +++ b/nomsu.lua @@ -842,7 +842,7 @@ do NomsuCompiler = _class_0 end if arg then - local parser = re.compile([[ args <- {| {:flags: flags? :} ({:input: input :} ";" ("-o;"{:output: output :} ";")?)? |} !. + local parser = re.compile([[ args <- {| {:flags: flags? :} ({:input: input :} ";" ("-o;"{:output: output :} ";")?)? (";")? |} !. flags <- (({| ({flag} ";")* |}) -> set) flag <- "-c" / "-i" / "-p" / "-f" / "--help" / "-h" input <- "-" / [^;]+ -- cgit v1.2.3