aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-12-14 14:07:03 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2017-12-14 14:07:03 -0800
commit4ee1a13e5251698f48424612168719bc0d56638e (patch)
tree76fbe9559c6bf1367eb59db919de982228427b1e
parent1111210047f3ca62a2fec5d0ca20bce5cad25f12 (diff)
Changed flags from -f to force nonoptimized to -O to use optimized.
-rwxr-xr-xnomsu.moon6
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu.moon b/nomsu.moon
index 0aec352..9ca17e0 100755
--- a/nomsu.moon
+++ b/nomsu.moon
@@ -903,18 +903,18 @@ if arg
parser = re.compile([[
args <- {| {:flags: flags? :} ({:input: input :} ";" ("-o;"{:output: output :} ";")?)? (";")? |} !.
flags <- (({| ({flag} ";")* |}) -> set)
- flag <- "-c" / "-i" / "-p" / "-f" / "--help" / "-h"
+ flag <- "-c" / "-i" / "-p" / "-O" / "--help" / "-h"
input <- "-" / [^;]+
output <- "-" / [^;]+
]], {set: utils.set})
args = concat(arg, ";")..";"
args = parser\match(args) or {}
if not args or not args.flags or args.flags["--help"] or args.flags["-h"]
- print "Usage: lua nomsu.lua [-c] [-i] [-p] [-f] [--help] [input [-o output]]"
+ print "Usage: lua nomsu.lua [-c] [-i] [-p] [-O] [--help] [input [-o output]]"
os.exit!
c = NomsuCompiler()
- c.skip_precompiled = args.flags["-f"]
+ c.skip_precompiled = not args.flags["-O"]
if args.input
-- Read a file or stdin and output either the printouts or the compiled lua
if args.flags["-c"] and not args.output