Replies: 3 comments
-
function main(...)
local argv = {...}
end |
Beta Was this translation helpful? Give feedback.
0 replies
-
那像
还请给指点一下 |
Beta Was this translation helpful? Give feedback.
0 replies
-
那像
还请给指点一下 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我尝试着运行
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