summaryrefslogtreecommitdiff
path: root/tests/projects/xmake_cli/hello/src/lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-22 22:43:03 +0800
committerruki <[email protected]>2020-04-22 10:18:18 +0800
commit762a7bc9386a0acaede7d54453611999a589c776 (patch)
tree23973800aa279410ee545ee3e36513dbce502fe1 /tests/projects/xmake_cli/hello/src/lua
parenteb53ce52d978925f285991556d2354ceb4cfd654 (diff)
improve to run xmake/cli
Diffstat (limited to 'tests/projects/xmake_cli/hello/src/lua')
-rw-r--r--tests/projects/xmake_cli/hello/src/lua/main.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/projects/xmake_cli/hello/src/lua/main.lua b/tests/projects/xmake_cli/hello/src/lua/main.lua
index f83baddf8..1ce83e728 100644
--- a/tests/projects/xmake_cli/hello/src/lua/main.lua
+++ b/tests/projects/xmake_cli/hello/src/lua/main.lua
@@ -1,3 +1,8 @@
+import("core.base.option")
function main ()
print("hello xmake!")
+ local argv = option.get("arguments")
+ if argv then
+ print(argv)
+ end
end