diff options
| author | ruki <[email protected]> | 2019-05-25 22:03:58 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-05-25 22:03:58 +0800 |
| commit | 2cae1ff2dc7f1756a8a831cfde5c6610342f978f (patch) | |
| tree | 397a3b92fd0405dff31e2cb0ea9cd1d02a5c32fe /xmake/core/base/option.lua | |
| parent | e2b3965574e574fafbd76d89ee6f5d18ca1265cd (diff) | |
add confirm option
Diffstat (limited to 'xmake/core/base/option.lua')
| -rw-r--r-- | xmake/core/base/option.lua | 2 |
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 |
