Replies: 5 comments 2 replies
-
function main(...)
local argv = {...}
end |
Beta Was this translation helpful? Give feedback.
-
那像
还请给指点一下 |
Beta Was this translation helpful? Give feedback.
-
那像
还请给指点一下 |
Beta Was this translation helpful? Give feedback.
-
这样的话,我是基本上明白了。
如果我是建立的 |
Beta Was this translation helpful? Give feedback.
-
这下更清楚了,原来传递表参数的时候要放入到引号里。
能否请将 |
Beta Was this translation helpful? Give feedback.
-
我尝试着运行
xmake lua sth.lua abc bbc
来向脚本传递参数,但却没有得到想要的参数。比如我有一个本地脚本
hello.lua
当我运行xmake lua,获得argv值为abc,opt值为bbc
当我想要给opt一个配置项时,根据
xmake lua --help
指示的用-d
,却没有得到想要的结果,此时opt是空的那么我应该如何在调试类似
find_qt.lua
这样的脚本时,从命令行输入配置项opt呢?Beta Was this translation helpful? Give feedback.
All reactions