summaryrefslogtreecommitdiff
path: root/xmake/core/ui
diff options
context:
space:
mode:
authorruki <[email protected]>2018-02-03 00:42:26 +0800
committerruki <[email protected]>2018-02-02 22:14:40 +0800
commit63ecc9139b29a21c0c812e9dca64dbdee2e5e725 (patch)
tree1bd0ae6bcb2cf411afd9da335adb9145ce2f7da3 /xmake/core/ui
parent22e4a987e03ee6884da0b2cbb8a23397e7f17931 (diff)
improve choice help menu
Diffstat (limited to 'xmake/core/ui')
-rw-r--r--xmake/core/ui/mconfdialog.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/core/ui/mconfdialog.lua b/xmake/core/ui/mconfdialog.lua
index 4f0fb5283..5c1941f36 100644
--- a/xmake/core/ui/mconfdialog.lua
+++ b/xmake/core/ui/mconfdialog.lua
@@ -204,6 +204,12 @@ function mconfdialog:show_help()
if config.default then
text = text .. "\ndefault: " .. tostring(config.default)
end
+ if config.kind == "choice" then
+ text = text .. "\nvalues: "
+ for _, value in ipairs(config.values) do
+ text = text .. "\n - " .. value
+ end
+ end
self:helpdialog():text():text_set(text)
-- show help