Restrict access to opts table from squishy files now that we have GetOption

Sat, 25 Jul 2009 22:13:34 +0100

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

Restrict access to opts table from squishy files now that we have GetOption

squish.lua file | annotate | diff | comparison | revisions
--- a/squish.lua	Sat Jul 25 22:09:53 2009 +0100
+++ b/squish.lua	Sat Jul 25 22:13:34 2009 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env lua
 
 local short_opts = { v = "verbose", vv = "very_verbose", o = "output", q = "quiet", qq = "very_quiet" }
-opts = {};
+local opts = {};
 
 for _, opt in ipairs(arg) do
 	if opt:match("^%-") then

mercurial