How to Read Program Arguments in Lua
Lua is among the programming languages - that I write about here - I have used the least.
Reading program arguments is as easy as in most languages.
for i=1,#arg,1
do
print(arg[i])
end
First we loop from 1 to the count of elements in arg (#arg).
In the do block we just print each argument.