# HG changeset patch # User Matthew Wild # Date 1248663670 -3600 # Node ID 1d2cca116cce36c82bb328e5d02f8a2d5ee34e25 # Parent 903128a426046bc795240ffdc99539ea42fe4e22 Rename --enable-debug option to --debug diff -r 903128a42604 -r 1d2cca116cce squish.lua --- a/squish.lua Mon Jul 27 04:00:16 2009 +0100 +++ b/squish.lua Mon Jul 27 04:01:10 2009 +0100 @@ -31,8 +31,6 @@ print = print_verbose; -local enable_debug = opts.enable_debug; - local modules, main_files, resources = {}, {}, {}; -- Functions to be called from squishy file -- @@ -164,7 +162,7 @@ end end -if enable_debug then +if opts.debug then f:write(require_resource("squish.debug")); end @@ -226,7 +224,7 @@ f:write("package.preload['", modulename, "'] = (function (...)\n"); f:write(data); f:write("end)\n"); - if enable_debug then + if opts.debug then f:write(string.format("package.preload[%q] = ___adjust_chunk(package.preload[%q], %q);\n\n", modulename, modulename, "@"..path)); end