diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-14 14:08:07 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2017-12-14 14:08:07 -0800 |
| commit | ce398c255a9fb5c59b89c018ce1514eaac2fbd5d (patch) | |
| tree | 3070605c74325c9fa4df916fa9bd258cf0c11414 | |
| parent | 4ee1a13e5251698f48424612168719bc0d56638e (diff) | |
Rebuild.
| -rw-r--r-- | nomsu.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1425,7 +1425,7 @@ if arg then colors = require('consolecolors') local 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 <- "-" / [^;]+ ]], { @@ -1434,11 +1434,11 @@ if arg then local args = concat(arg, ";") .. ";" args = parser:match(args) or { } if not args or not args.flags or args.flags["--help"] or args.flags["-h"] then - 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() end local c = NomsuCompiler() - c.skip_precompiled = args.flags["-f"] + c.skip_precompiled = not args.flags["-O"] if args.input then if args.flags["-c"] and not args.output then args.output = args.input .. ".lua" |
