[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua library to process commandlines
- From: "Patrick Mc(avery" <spell_gooder_now@...>
- Date: Tue, 08 Mar 2011 10:18:25 -0500
On 03/08/2011 10:18 AM, Luciano de Souza wrote:
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
Maybe this would help?: