diff options
| author | ruki <[email protected]> | 2016-04-05 20:14:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-04-05 20:14:08 +0800 |
| commit | 444f3f3f9e9dabf46da999d6d8d6f200c672a866 (patch) | |
| tree | c291d75f7a036ad10122de3bcc7dfd34b511e7ce /xmake/core/main.lua | |
| parent | ee1293db712b47706496da86e0564010bafdaaa9 (diff) | |
save option and run new task
Diffstat (limited to 'xmake/core/main.lua')
| -rw-r--r-- | xmake/core/main.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/core/main.lua b/xmake/core/main.lua index dab1627db..589f1ae1c 100644 --- a/xmake/core/main.lua +++ b/xmake/core/main.lua @@ -52,7 +52,7 @@ function main._help() if option.get("help") then -- print menu - option.print_menu(option.task()) + option.show_menu(option.taskname()) -- ok return true @@ -117,8 +117,9 @@ function main.done() end -- run task - local ok = task.run(option.task() or "build") + local ok, errors = task.run(option.taskname() or "build") if not ok then + utils.error(errors) return -1 end |
