summaryrefslogtreecommitdiff
path: root/xmake/core/base/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-02-28 15:02:36 +0800
committerruki <[email protected]>2016-02-28 15:02:36 +0800
commitdbd69a7e7263760d592bcaf2abcde8758dd82fd1 (patch)
treedbe8153f44b5c29bdacf8e2fdef46d596a6124f0 /xmake/core/base/main.lua
parent95860a08bd483a3f900ea15ba30c69faa60e01e8 (diff)
hide _DEFAULTS for option
Diffstat (limited to 'xmake/core/base/main.lua')
-rw-r--r--xmake/core/base/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/main.lua b/xmake/core/base/main.lua
index 4bc077ff6..e8f687e5d 100644
--- a/xmake/core/base/main.lua
+++ b/xmake/core/base/main.lua
@@ -56,7 +56,7 @@ function main._done_help()
if options.help then
-- print menu
- option.print_menu(options._TASK)
+ option.print_menu(option.task())
-- ok
return true
@@ -92,7 +92,7 @@ function main._done_option()
end
-- done action
- return action.done(options._TASK or "build")
+ return action.done(option.task() or "build")
end
-- the init function for main