[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: WANTED: POSIX compatible getopt
- From: Fabien <fleutot+lua@...>
- Date: Fri, 9 Jan 2009 18:06:27 +0100
Metalua has a fairly complete options parser, accessible here:
It uses some metalua extensions, so if you want to use it without metalua you'll have to either use the bytecode-compiled version (which is lua compatible), or to backport parts of it in plain Lua.
It handles short options (-a, +a, -ab is the same as -a -b, etc.), long option names, typed option arguments, end-of-parsing token (-- by default as you expect), automated usage message generation. Unfortunately, the documentation is still "TODO", but you can look at a few samples below, and/or ask for assistance, by mail or on the metalua mailing list.