25 ["opt-strings"] = opts.minify_strings; |
25 ["opt-strings"] = opts.minify_strings; |
26 ["opt-numbers"] = opts.minify_numbers; |
26 ["opt-numbers"] = opts.minify_numbers; |
27 } |
27 } |
28 |
28 |
29 local function die(msg) |
29 local function die(msg) |
30 print("LuaSrcDiet: "..msg); os.exit() |
30 print_err("minify: "..msg); os.exit(1); |
31 end |
31 end |
32 |
32 |
33 local function load_file(fname) |
33 local function load_file(fname) |
34 local INF = io.open(fname, "rb") |
34 local INF = io.open(fname, "rb") |
35 if not INF then die("cannot open \""..fname.."\" for reading") end |
35 if not INF then die("cannot open \""..fname.."\" for reading") end |