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.1 of optparse.

Optparse's home page is at https://github.com/gvvaughan/optparse

This was the option parser I originally wrote for Specl, and later donated to
lua-stdlib.  I’m in the process of slimming down lua-stdlib in preparation for the next
release though, part of which means that you can now use optparse without requiring the
installation of all of stdlib.

This release tidies up interactions between optparse, and optional use of
https://github.com/lua-stdlib/strict and of https://github.com/lua-stdlib/lua-stdlib's
`debug_init` module, so that they work properly with those modules in `LUA_PATH` or not,
in any combination.


## Noteworthy changes in release 1.1 (2016-01-29) [stable]

### New features

 - If lua-stdlib's `std.debug_init` module is loadable and has
   `_DEBUG.strict` set to `false`, then don't try to load the standalone
   `strict` module.

### Bug fixes

 - Uninstalled `std.debug_init` is handled correctly.

 - `optparse._VERSION` is now documented properly.


Install it with LuaRocks, using:

    luarocks install optparse 1.1