lua-users home
lua-l archive

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


Automatically generate a custom command-line option parser from just the long-form help text for your program.

I am happy to announce release 1.3 of optparse.

Optparse's home page is at https://github.com/gvvaughan/optparse, with documentation at https://gvvaughan.github.io/optparse.

This was the option parser I originally wrote for Specl, and later donated to lua-stdlib. Even though I’ve not yet completed the slimming down of lua-stdlib in preparation for the next release, you can continue to use optparse without requiring the installation of all of stdlib. In contrast with v1.2, this release is built atop the `std.normalize` library.

This release also fixes another long standing bug.

Install it with LuaRocks, using:

    luarocks install optparse 1.3


## Noteworthy changes in release 1.3 (2017-12-17) [stable]


### Bug fixes


- don't hang when help text has a bare '-' as the first non-whitespace character on the line.


### Incompatible changes


- the implementation now depends upon and requires the luarocks modules `std.normalize` and `std._debug`.