summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-28 19:30:26 +0800
committerruki <[email protected]>2016-05-28 19:30:26 +0800
commit7a0445c0612e9065461c1dff3eab6e992d742e4d (patch)
treebde652f9383c8b73e7e724b17654d2abe612ecd6 /xmake/core/project/task.lua
parent125c23d12e9983234c328b805c8da5b8f78ab898 (diff)
pass task arguments
Diffstat (limited to 'xmake/core/project/task.lua')
-rw-r--r--xmake/core/project/task.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/project/task.lua b/xmake/core/project/task.lua
index 101a5ca64..2bdc7c353 100644
--- a/xmake/core/project/task.lua
+++ b/xmake/core/project/task.lua
@@ -357,7 +357,7 @@ function task.tasks()
end
-- run task with given name
-function task.run(name)
+function task.run(name, ...)
-- check
assert(name)
@@ -382,7 +382,7 @@ function task.run(name)
end
-- run task
- return sandbox.load(taskinfo.run)
+ return sandbox.load(taskinfo.run, ...)
end
-- the menu