summaryrefslogtreecommitdiff
path: root/xmake/scripts
diff options
context:
space:
mode:
authorruki <[email protected]>2015-12-07 14:01:32 +0800
committerruki <[email protected]>2015-12-07 14:01:32 +0800
commit023bbfadd3a05f42e858a2a055bdf2f24f21aa78 (patch)
treecf219d6bb87f626e5a514b9c1953f5595bf10741 /xmake/scripts
parent9e5eecfdc1629dd3d9880fb5cb19d848b10a525b (diff)
fix option description bug
Diffstat (limited to 'xmake/scripts')
-rw-r--r--xmake/scripts/base/project.lua6
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