summaryrefslogtreecommitdiff
path: root/tests/projects/xmake_cli/hello/src/lua/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/xmake_cli/hello/src/lua/main.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