diff options
| author | Opportunity <[email protected]> | 2020-01-18 16:44:19 +0800 |
|---|---|---|
| committer | Opportunity <[email protected]> | 2020-01-19 13:01:08 +0800 |
| commit | fc9d1bd7bd28b4fb45b6a5d7f0a4e7d471afbddb (patch) | |
| tree | 48ac9e40fcb5d3110b8a69f1689f1e5997abff75 /xmake/core/base/option.lua | |
| parent | 31835e7868e053d02f20d56a380c0cf1d19cef33 (diff) | |
improve complete
Diffstat (limited to 'xmake/core/base/option.lua')
| -rw-r--r-- | xmake/core/base/option.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/core/base/option.lua b/xmake/core/base/option.lua index e49b47f40..9d6853baa 100644 --- a/xmake/core/base/option.lua +++ b/xmake/core/base/option.lua @@ -745,12 +745,14 @@ function option.show_options(options, taskname) if name then local leading = (shortname and "," or " ") .. (mode:startswith("k") and " --" or " ") local kv - if mode:startswith("k") then + if mode == "k" then kv = name + elseif mode == "kv" then + kv = (name .. "=" .. ((type(default) == "boolean") and "[y|n]" or name:upper())) elseif mode == "vs" then kv = name .. " ..." else - kv = (name .. "=" .. ((type(default) == "boolean") and "[y|n]" or name:upper())) + kv = name end option_info = option_info .. leading .. kv elseif mode == "v" or mode == "vs" then |
