diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-14 14:07:03 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-14 14:07:03 -0800 |
| commit | 4ee1a13e5251698f48424612168719bc0d56638e (patch) | |
| tree | 76fbe9559c6bf1367eb59db919de982228427b1e | |
| parent | 1111210047f3ca62a2fec5d0ca20bce5cad25f12 (diff) | |
Changed flags from -f to force nonoptimized to -O to use optimized.
| -rwxr-xr-x | nomsu.moon | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
