summaryrefslogtreecommitdiff
path: root/xmake/core/base/option.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/option.lua')
-rw-r--r--xmake/core/base/option.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index bb75111fd..9873d8195 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -725,8 +725,8 @@ end
-- get the boolean value
function option.boolean(value)
-
if type(value) == "string" then
+ value = value:lower()
if value == "true" or value == "yes" or value == "y" then value = true
elseif value == "false" or value == "no" or value == "n" then value = false
end