I've used Lua with Corona SDK for a long time, but I only just downloaded the standalone Lua interpreter (invoked from the command line). When I use
lua main.lua
From the Mac terminal, for some reason, any functions that use (...) no longer have access to arg as their ... arguments; rather, arg now points to the command line arguments.
My question: is there a way to invoke Lua from the command line and still have functions like
local function myFunction(...)
print(arg[1])
end
With them pointing to the their own ... arguments, not the command line ones?