Open TheDrawingCoder-Gamer opened 2 years ago
I'm working on a computercraft script, and how it passes arguments is via calling the file with rest args. In lua, you are meant to obtain these via
local args = {...}
Given that within the main function, you can't access global ... (i've tried) it would be nice if you could i.e. add a ...rest to the main function.
...
...rest
apparently Sys.args does this
Sys.args
sanity loss
that's not what Sys.args does sanity loss
I'm working on a computercraft script, and how it passes arguments is via calling the file with rest args. In lua, you are meant to obtain these via
Given that within the main function, you can't access global
...
(i've tried) it would be nice if you could i.e. add a...rest
to the main function.