diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-18 20:37:13 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-18 20:37:13 +0000 |
commit | 70aa9bb855db019e08b6931f916e67c563018a9d (patch) | |
tree | d285e972ebf947db1a3d491ca5bf09eb262d34cc /libs/uvl/root | |
parent | 63c48c8ddee458322fc89892114f116e671744ad (diff) |
* luci/libs: uvl: add support for list values in schemes and configurations
Diffstat (limited to 'libs/uvl/root')
-rwxr-xr-x | libs/uvl/root/usr/bin/uvl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/uvl/root/usr/bin/uvl b/libs/uvl/root/usr/bin/uvl index cc30d0421..1631208f0 100755 --- a/libs/uvl/root/usr/bin/uvl +++ b/libs/uvl/root/usr/bin/uvl @@ -69,8 +69,8 @@ $Id$ Usage: uvl --help uvl [--silent] [--schemedir=DIR] - [--no-strict-sections] [--no-strict-options] - [--no-strict-validators] config[.section[.option]] + [--no-strict-sections] [--no-strict-options] [--no-strict-validators] + [--no-strict-lists] config[.section[.option]] Options: --help @@ -90,6 +90,9 @@ Options: --no-strict-validators Don't invalidate config if an external validator fails. + + --no-strict-lists + Don't invalidate lists that are stored options. ]=]) os.exit(255) else @@ -99,6 +102,8 @@ else ( options['no-strict-options'] and false or true ) luci.uvl.STRICT_EXTERNAL_VALIDATORS = ( options['no-strict-validators'] and false or true ) + luci.uvl.STRICT_LIST_TYPE = + ( options['no-strict-lists'] and false or true ) local uvl = luci.uvl.UVL( type(options.schemedir) == "string" and options.schemedir or nil |