diff options
| author | ruki <[email protected]> | 2024-02-17 00:42:17 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-02-17 00:42:17 +0800 |
| commit | e073f2f372af559099e5f2b7013ff938f113a00a (patch) | |
| tree | 404920cd7b7273f0291653016554bf06b1a7624a /xmake/core/base | |
| parent | 963f544355305376c66e8fc9a98af19396c2a4a5 (diff) | |
move --version argument #4741
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/task.lua | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index 8c361463b..deea228aa 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -46,7 +46,6 @@ function task.common_options() , {'D', "diagnosis", "k", nil, "Print lots of diagnosis information (backtrace, check info ..) only for developers." , "And we can append -v to get more whole information." , " e.g. $ xmake -vD" } - , {nil, "version", "k", nil, "Print the version number and exit." } , {'h', "help", "k", nil, "Print this help message and exit." } , {} , {'F', "file", "kv", nil, "Read a given xmake.lua file." } @@ -424,8 +423,6 @@ function task.menu(tasks) -- has task menu? local taskmenu = taskinst:get("menu") if taskmenu then - - -- main? if taskinst:get("category") == "main" then -- delay to load main menu @@ -440,22 +437,15 @@ function task.menu(tasks) -- make tasks for the main menu mainmenu.tasks = {} for name, inst in pairs(tasks) do - - -- has menu? local m = inst:get("menu") if m then - - -- add task - mainmenu.tasks[name] = - { + mainmenu.tasks[name] = { category = inst:get("category") , shortname = m.shortname , description = m.description } end end - - -- ok return mainmenu end end |
