Skip to content

Commit 5d9bffa

Browse files
committed
support boolean in command line
1 parent a5b0988 commit 5d9bffa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lualib/initsetting.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ function S.init(args)
6767
end
6868
for k,v in pairs(args) do
6969
if type(k) == "string" then
70+
if v == "true" then
71+
v = true
72+
elseif v == "false" then
73+
v = false
74+
end
7075
patch(default_settings, k,v)
7176
end
7277
end

0 commit comments

Comments
 (0)