Update squishy file to use GetOption

Sat, 25 Jul 2009 22:09:53 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 25 Jul 2009 22:09:53 +0100
changeset 14
ea4d95329ceb
parent 13
b93f52cbe253
child 15
2aa02b99d2af

Update squishy file to use GetOption

squishy file | annotate | diff | comparison | revisions
--- a/squishy	Sat Jul 25 22:05:55 2009 +0100
+++ b/squishy	Sat Jul 25 22:09:53 2009 +0100
@@ -11,7 +11,7 @@
 Main "squish.lua"
 
 -- Add minify extension if asked to
-if opts.with_minify then
+if GetOption "with-minify" then
 	Module "optlex"		"minify/optlex.lua"
 	Module "optparser"	"minify/optparser.lua"
 	Module "llex"		"minify/llex.lua"
@@ -21,13 +21,13 @@
 end
 
 -- Compress Lua scripts (an excellent hack :) )
-if opts.with_uglify then
+if GetOption "with-uglify" then
 	Module "llex"		"uglify/llex.lua"
 	
 	Main "uglify/squish.uglify.lua"
 end
 
 -- Compile output files to Lua bytecode
-if opts.with_compile then
+if GetOption "with-compile" then
 	Main "compile/squish.compile.lua"
 end

mercurial