summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/ui/mconfdialog.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/core/ui/mconfdialog.lua b/xmake/core/ui/mconfdialog.lua
index e52f87e46..d430e4a18 100644
--- a/xmake/core/ui/mconfdialog.lua
+++ b/xmake/core/ui/mconfdialog.lua
@@ -252,14 +252,16 @@ function mconfdialog:show_help()
if config.kind then
text = text .. "\ntype: " .. config.kind
end
- if config.default then
- text = text .. "\ndefault: " .. tostring(config.default)
- end
if config.kind == "choice" then
+ if config.default and config.values[config.default] then
+ text = text .. "\ndefault: " .. config.values[config.default]
+ end
text = text .. "\nvalues: "
for _, value in ipairs(config.values) do
text = text .. "\n - " .. value
end
+ elseif config.default then
+ text = text .. "\ndefault: " .. tostring(config.default)
end
if config.path then
text = text .. "\npath: " .. config.path