summaryrefslogtreecommitdiff
path: root/xmake/core/project/task.lua
diff options
context:
space:
mode:
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