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 <> 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:

I personally like alt-getopt the best:

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.