diff options
| author | ruki <[email protected]> | 2017-09-20 22:43:55 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-09-20 10:23:34 +0800 |
| commit | 29d8859222252ffa54536c0d324290a0c9f2eb41 (patch) | |
| tree | daf38b4f51fcdfafc388edbcb96107ce30a5195a /xmake/core/base/task.lua | |
| parent | 218e2711e1afacd334ce50b37b0fa2d2db573e8e (diff) | |
add --yes to confirm the user input
Diffstat (limited to 'xmake/core/base/task.lua')
| -rw-r--r-- | xmake/core/base/task.lua | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index 757b1fcf3..ad4b787ba 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -132,20 +132,21 @@ function task._translate_menu(menu) -- add common options table.insert(options, 1, {'q', "quiet", "k", nil, "Quiet operation." }) - table.insert(options, 2, {'v', "verbose", "k", nil, "Print lots of verbose information." }) - table.insert(options, 3, {nil, "root", "k", nil, "Allow to run xmake as root." }) - table.insert(options, 4, {nil, "backtrace", "k", nil, "Print backtrace information for debugging." }) - table.insert(options, 5, {nil, "profile", "k", nil, "Print performance data for debugging." }) - table.insert(options, 6, {nil, "version", "k", nil, "Print the version number and exit." }) - table.insert(options, 7, {'h', "help", "k", nil, "Print this help message and exit." }) - table.insert(options, 8, {}) - table.insert(options, 9, {'F', "file", "kv", nil, "Read a given xmake.lua file." }) - table.insert(options, 10, {'P', "project", "kv", nil, "Change to the given project directory." + table.insert(options, 2, {'y', "yes", "k", nil, "Input yes by default if need user confirm." }) + table.insert(options, 3, {'v', "verbose", "k", nil, "Print lots of verbose information." }) + table.insert(options, 4, {nil, "root", "k", nil, "Allow to run xmake as root." }) + table.insert(options, 5, {nil, "backtrace", "k", nil, "Print backtrace information for debugging." }) + table.insert(options, 6, {nil, "profile", "k", nil, "Print performance data for debugging." }) + table.insert(options, 7, {nil, "version", "k", nil, "Print the version number and exit." }) + table.insert(options, 8, {'h', "help", "k", nil, "Print this help message and exit." }) + table.insert(options, 9, {}) + table.insert(options, 10, {'F', "file", "kv", nil, "Read a given xmake.lua file." }) + table.insert(options, 11, {'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, 11, {}) + table.insert(options, 12, {}) end |
