diff options
| author | ruki <[email protected]> | 2017-05-18 16:28:43 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-05-18 16:28:43 +0800 |
| commit | 75cfb11546cd271ebb8b251d291ad9c7b6277b66 (patch) | |
| tree | a54d87f951beef41ae0be1be17cd47d849b2e416 /xmake/plugins/lua | |
| parent | 102c4ce16295fe322704b6e5186f325effa989a8 (diff) | |
improve print and table.dump
Diffstat (limited to 'xmake/plugins/lua')
| -rw-r--r-- | xmake/plugins/lua/xmake.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/xmake/plugins/lua/xmake.lua b/xmake/plugins/lua/xmake.lua index 77833e9a3..2789bf26a 100644 --- a/xmake/plugins/lua/xmake.lua +++ b/xmake/plugins/lua/xmake.lua @@ -69,12 +69,7 @@ task("lua") else -- run modules (xmake lua core.xxx.xxx) - local result = import(script)(unpack(option.get("arguments") or {})) - if type(result) == "table" then - table.dump(table) - elseif result ~= nil then - print(result) - end + print(import(script)(unpack(option.get("arguments") or {}))) end else -- enter interactive mode |
