diff options
| author | ruki <[email protected]> | 2015-12-07 14:01:32 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-07 14:01:32 +0800 |
| commit | 023bbfadd3a05f42e858a2a055bdf2f24f21aa78 (patch) | |
| tree | cf219d6bb87f626e5a514b9c1953f5595bf10741 /xmake/scripts | |
| parent | 9e5eecfdc1629dd3d9880fb5cb19d848b10a525b (diff) | |
fix option description bug
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/base/project.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/scripts/base/project.lua b/xmake/scripts/base/project.lua index 653d72ddb..74128be9d 100644 --- a/xmake/scripts/base/project.lua +++ b/xmake/scripts/base/project.lua @@ -1331,7 +1331,11 @@ function project.menu() end -- append it - table.insert(menu, {nil, name, "kv", default, utils.unwrap(opt.description)}) + if opt.description then + table.insert(menu, {nil, name, "kv", default, utils.unwrap(opt.description)}) + else + table.insert(menu, {nil, name, "kv", default, nil}) + end end end end |
