lua-users home
lua-l archive

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


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