[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lua library to process commandlines
- From: Luciano de Souza <luchyanus@...>
- Date: Tue, 08 Mar 2011 12:18:39 -0300
The table "arg" contains the commandline arguments. For example:
espeak test.txt -w test.wav -s 280
In this case, arg is test.txt and arg 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