I need some help on parsing the Command Line for a lua file. I am executing a lua file and that lua file has a command \"dofile(2nd.lua-file)\", but, I want to pass some arg
Try this. In file `a.lua':
assert(loadfile("b.lua"))(10,20,30)
In file b.lua:
b.lua
local a,b,c=...
or
local arg={...}
The arguments to b.lua are received as varargs, hence the ....
...