summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-21 13:30:20 +0800
committerruki <[email protected]>2016-05-21 13:30:20 +0800
commit143bfb465af68ec29d4887d67a7f1f57b53c0747 (patch)
tree282ef562cfce85e810f397f06a300ecc26ef7841 /xmake/core/project/task.lua
parent7c793cc7667d9bcc52715fa9c73bb9950d611b90 (diff)
add backtrace option
Diffstat (limited to 'xmake/core/project/task.lua')
-rw-r--r--xmake/core/project/task.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index d695c9c83..672df88b0 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -128,16 +128,17 @@ function task._translate_menu(menu)
end
-- add common options
- 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, 1, {'v', "verbose", "k", nil, "Print lots of verbose information." })
+ table.insert(options, 1, {'b', "backtrace", "k", nil, "Print backtrace information for debugging." })
+ 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, 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" })
+ , " 3. The Current Directory" })
table.insert(options, 7, {})
end