summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl/root
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/root
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/root')
-rwxr-xr-xlibs/uvl/root/usr/bin/uvl8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/uvl/root/usr/bin/uvl b/libs/uvl/root/usr/bin/uvl
index b859097fa..0fe7a13a7 100755
--- a/libs/uvl/root/usr/bin/uvl
+++ b/libs/uvl/root/usr/bin/uvl
@@ -185,13 +185,13 @@ Actions:
os.exit(255)
elseif arguments[1] == "verify" then
luci.uvl.STRICT_UNKNOWN_SECTIONS =
- ( options['no-strict-sections'] and false or true )
+ ( not options['no-strict-sections'] and true or false )
luci.uvl.STRICT_UNKNOWN_OPTIONS =
- ( options['no-strict-options'] and false or true )
+ ( not options['no-strict-options'] and true or false )
luci.uvl.STRICT_EXTERNAL_VALIDATORS =
- ( options['no-strict-validators'] and false or true )
+ ( not options['no-strict-validators'] and true or false )
luci.uvl.STRICT_LIST_TYPE =
- ( options['no-strict-lists'] and false or true )
+ ( not options['no-strict-lists'] and true or false )
local uvl = luci.uvl.UVL(
type(options.schemedir) == "string" and options.schemedir or nil