lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi all,

The table "arg" contains the commandline arguments. For example:

espeak test.txt -w test.wav -s 280

In this case, arg[1] is test.txt and arg[2] is "-w".

However, I can do it:

espeak test.txt -s 280 -w test.wav

The result is the same, but there is a change in the position of arguments.

Processing commandline arguments only with the table arg, perhaps, it may be a little bit confused.

My question is: there is in Lua a specific library for commandline processing? By means of it, could I create a changeable command like that?

Regards,

Luciano de Souza