summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/config.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/script/config.lua b/script/config.lua
index 5273e0cd..effd3016 100644
--- a/script/config.lua
+++ b/script/config.lua
@@ -22,6 +22,13 @@ local function String(v)
return true, tostring(v)
end
+local function Nil(v)
+ if type(v) == 'nil' then
+ return true, nil
+ end
+ return false
+end
+
local function Str2Hash(sep)
return function (v)
if type(v) == 'string' then
@@ -186,7 +193,7 @@ local ConfigTemplate = {
progressBar = {true, Boolean},
},
telemetry = {
- enable = {true, Boolean},
+ enable = {nil, Or(Boolean, Nil)},
}
}