summaryrefslogtreecommitdiff
path: root/xmake/core/base
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base')
-rw-r--r--xmake/core/base/task.lua9
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