diff options
| author | ruki <[email protected]> | 2015-06-21 21:44:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-06-21 21:44:40 +0800 |
| commit | 6faa822ae876cd75a0ad936e9af863f559e9d8e8 (patch) | |
| tree | 11443cf8cb6e8632ab4022476d51b5fc9216aec2 /xmake/scripts/base/option.lua | |
| parent | a3f92451ca522092bd12e0c64a73b1154993253d (diff) | |
add static and shared library templates
Diffstat (limited to 'xmake/scripts/base/option.lua')
| -rw-r--r-- | xmake/scripts/base/option.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/scripts/base/option.lua b/xmake/scripts/base/option.lua index 8ad3613c2..96062b4f8 100644 --- a/xmake/scripts/base/option.lua +++ b/xmake/scripts/base/option.lua @@ -555,7 +555,12 @@ function option.print_main() local action_menu = menu[action] -- init the action info - local action_info = " " .. utils.ifelse(action_menu and action_menu.shortname, action_menu.shortname .. ", ", " ") + local action_info = " " + if action_menu and action_menu.shortname then + action_info = action_info .. action_menu.shortname .. ", " + else + action_info = action_info .. " " + end -- append the action action_info = action_info .. action |
