summaryrefslogtreecommitdiff
path: root/xmake/core/base/option.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-06-07 22:17:48 +0800
committerruki <[email protected]>2016-06-07 22:17:48 +0800
commit1cbfdb2503e78ace177846b09eecc79bf5810832 (patch)
tree84d67bc91412c01950b28d253cb64b0ccdc49b55 /xmake/core/base/option.lua
parent9bd25eacb780c89b0cf9968160e21399ef3872a5 (diff)
fix ccache option bug
Diffstat (limited to 'xmake/core/base/option.lua')
-rw-r--r--xmake/core/base/option.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua
index 3760c42d1..4172c816e 100644
--- a/xmake/core/base/option.lua
+++ b/xmake/core/base/option.lua
@@ -277,8 +277,8 @@ function option.init(menu)
-- value is "true" or "false", translate it
if type(value) == "string" then
- if value == "true" then value = true
- elseif value == "false" then value = false
+ 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
end