summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-25 08:37:01 +0800
committerruki <[email protected]>2016-02-25 08:38:24 +0800
commit3456f0e1f8fb59aed918075250b2f112b91a2255 (patch)
treefe60cd34b068aa1fd49c755b38675794a3150800 /xmake/core/base/task.lua
parent01ab81520540901f97fe3581bc4a3d7c3bb21e30 (diff)
optimizate the menu of task
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index 14caf1741..d7893d674 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -140,10 +140,17 @@ function task.menu()
-- 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, 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, {})
+ table.insert(options, 5, {'f', "file", "kv", nil, "Read a given xmake.lua file." })
+ table.insert(options, 6, {'P', "project", "kv", nil, "Change to the given project directory."
+ , "Search priority:"
+ , " 1. The Given Command Argument"
+ , " 2. The Envirnoment Variable: XMAKE_PROJECT_DIR"
+ , " 3. The Current Directory" })
+ table.insert(options, 7, {})
end
-- main?