lua-users home
lua-l archive

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

On 03/08/2011 10:18 AM, Luciano de Souza wrote:
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?


Luciano de Souza

Maybe this would help?: