Skip to content

Commit

Permalink
fix option.boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed May 28, 2019
1 parent 9c37f2e commit eb60a76
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmake/core/base/option.lua
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ 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
local v = value:lower()
if v == "true" or v == "yes" or v == "y" then value = true
elseif v == "false" or v == "no" or v == "n" then value = false
end
end
return value
Expand Down

0 comments on commit eb60a76

Please sign in to comment.