Rename --enable-debug option to --debug

Mon, 27 Jul 2009 04:01:10 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Mon, 27 Jul 2009 04:01:10 +0100
changeset 39
1d2cca116cce
parent 38
903128a42604
child 40
ab43c18f9d31

Rename --enable-debug option to --debug

squish.lua file | annotate | diff | comparison | revisions
--- 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

mercurial