summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl/luasrc/uvl.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2008-09-03 02:08:38 +0000
committerJo-Philipp Wich <jow@openwrt.org>2008-09-03 02:08:38 +0000
commiteedb43da9b5193380faeeb39754298335a0f0bb9 (patch)
treeaecbbe249a5da5c4f9a348f42ea6691546b9aa70 /libs/uvl/luasrc/uvl.lua
parent3817e514023df4af6f7d8cb43870dd512d73841f (diff)
* luci/libs/uvl:
- fix command line switches for uvl - honour STRICT_UNKOWN_OPTIONS in luci.uvl._validate_option()
Diffstat (limited to 'libs/uvl/luasrc/uvl.lua')
-rw-r--r--libs/uvl/luasrc/uvl.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua
index e5a6c7569..908cfd7bd 100644
--- a/libs/uvl/luasrc/uvl.lua
+++ b/libs/uvl/luasrc/uvl.lua
@@ -280,7 +280,11 @@ function UVL._validate_option( self, option, nodeps )
self.beenthere[option:cid()] = true
if not option:scheme() and not option:parent():scheme('dynamic') then
- return false, option:error(ERR.OPT_UNKNOWN(option))
+ if STRICT_UNKNOWN_OPTIONS then
+ return false, option:error(ERR.OPT_UNKNOWN(option))
+ else
+ return true
+ end
elseif option:scheme() then
if option:scheme('required') and not option:value() then