[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua library to process commandlines
- From: Alex Bradbury <asb@...>
- Date: Tue, 8 Mar 2011 15:29:05 +0000
On 8 March 2011 15:18, Luciano de Souza <luchyanus@gmail.com> wrote:
> 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?
See the wiki:
http://lua-users.org/wiki/CommandLineParsing
I personally like alt-getopt the best:
http://luaforge.net/projects/alt-getopt/
My only criticism is that it takes it upon itself to call os.exit for
an unkown option, bad usage etc. It would be a small patch to add an
optional callback you can specify to handle these cases though.
Alex