From 3456f0e1f8fb59aed918075250b2f112b91a2255 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 25 Feb 2016 08:37:01 +0800 Subject: optimizate the menu of task --- xmake/core/base/task.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xmake/core/base/task.lua') 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? -- cgit v1.3.1