summaryrefslogtreecommitdiff
path: root/xmake/plugins/macro/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-05-31 20:28:02 +0800
committerruki <[email protected]>2016-05-31 20:28:02 +0800
commitab0596a0fda80b663f13d53188636361efa78f3c (patch)
tree6f3973354e18b2d67c64dcb26706c56f71b80839 /xmake/plugins/macro/main.lua
parenta976651039f008aa7e0e7ec6cfee57bfb2aea6fa (diff)
split argv for macro
Diffstat (limited to 'xmake/plugins/macro/main.lua')
-rwxr-xr-xxmake/plugins/macro/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/macro/main.lua b/xmake/plugins/macro/main.lua
index 4462929c7..b57773acf 100755
--- a/xmake/plugins/macro/main.lua
+++ b/xmake/plugins/macro/main.lua
@@ -201,7 +201,7 @@ function _run(macroname)
macro = import(macroname, {rootdir = _directory()})
-- run macro
- macro.main(option.get("argv"))
+ macro.main((option.get("argv") or ""):split("%s"))
-- trace
print("run macro(%s) ok!", macroname)