diff options
| -rw-r--r-- | xmake/core/main.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index 97c77ae43..de0ab15af 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -44,6 +44,17 @@ local menu = -- copyright , copyright = "Copyright (C) 2015-2016 Ruki Wang, ${underline}tboox.org${clear}, ${underline}xmake.io${clear}\nCopyright (C) 2005-2015 Mike Pall, ${underline}luajit.org${clear}" + -- features +, features = (function() + local str = "" + for _, val in ipairs(os.features()) do + str = str .. val .. ", " + end + if #str ~= 0 then + return "Enable: " .. str:sub(1, #str - 2) + end + end)() + -- the tasks: xmake [task] , task.menu @@ -74,6 +85,11 @@ function main._help() utils.cprint(menu.copyright) end + -- print features + if menu.features then + utils.print(menu.features) + end + -- ok return true end |
