aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2017-12-14 14:08:07 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2017-12-14 14:08:07 -0800
commitce398c255a9fb5c59b89c018ce1514eaac2fbd5d (patch)
tree3070605c74325c9fa4df916fa9bd258cf0c11414
parent4ee1a13e5251698f48424612168719bc0d56638e (diff)
Rebuild.
-rw-r--r--nomsu.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/nomsu.lua b/nomsu.lua
index 6ab5df9..9663a9e 100644
--- a/nomsu.lua
+++ b/nomsu.lua
@@ -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"