How to Read Program Arguments in Lua Posted in Polyglotbits on 25 of Oct, 2016

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

First we loop from 1 to the count of elements in arg (#arg).

In the do block we just print each argument.

More about Lua