diff options
| author | ruki <[email protected]> | 2016-02-24 16:55:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-02-24 16:55:27 +0800 |
| commit | 00958c7b39c53a7e597ff6705ae9b1e2baeece4b (patch) | |
| tree | 4951b66e8fdcbdd35bd102740bda2dea21b571b8 /xmake/core/base/task.lua | |
| parent | dae473cb200c72b9cd94fcfe04c431e59837012f (diff) | |
add some common options
Diffstat (limited to 'xmake/core/base/task.lua')
| -rw-r--r-- | xmake/core/base/task.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index 333f58edc..0237d62ee 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -137,6 +137,15 @@ function task.menu() -- has menu? if taskinfo.menu then + -- add common options + local options = taskinfo.menu.options + if options then + table.insert(options, 1, {'v', "verbose", "k", nil, "Print lots of verbose information." }) + table.insert(options, 2, {nil, "version", "k", nil, "Print the version number and exit." }) + table.insert(options, 3, {'h', "help", "k", nil, "Print this help message and exit." }) + table.insert(options, 4, {}) + end + -- main? if taskinfo.category == "main" then menu.main = taskinfo.menu |
