Skip to content

Releases: gvvaughan/optparse

[ANN] optparse 1.5 released

31 Jul 01:31
Compare
Choose a tag to compare

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.5 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 been unable to complete the slimming down of lua-stdlib in preparation for the next release, you can continue to use optparse without any of stdlib.

This release fixes another long standing bug.

Install it with LuaRocks, using:

luarocks install optparse 1.5

Noteworthy changes in release 1.5 (2022-07-30) [stable]

Bug fixes

  • The parser no longer shadows the internal optparse.version
    on_handler by also saving the last word of the parsed
    versiontext into optparse.version.

    But, we don't want to break existing clients that use the content
    of the saved optparse.version string either. Since the
    on_handler was never available to callers before due to being
    shadowed, rename it to optparse.showversion.

Incompatible changes

  • For consistency with the renaming of optparse.showversion,
    similarly rename optparse.help to optparse.showhelp. For
    backwards compatibility, optparse.help continues to be available
    too, but is now undocumented. Consider using the showhelp in
    your projects, especially if you also start using showversion.

[ANN] optparse 1.4 released

01 Sep 19:41
Compare
Choose a tag to compare

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.4 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.3, this release supports Lua 5.4, and no longer requires std.normalize and std.debug libraries to be installed for ease of deployment.

This release also fixes another long standing bug.

Install it with LuaRocks, using:

luarocks install optparse 1.4

Noteworthy changes in release 1.4 (2018-09-16) [stable]

New Features

  • Initial support for Lua 5.4.

  • No need to preinstall std._debug and std.normalize for deployment,
    of course without runtime checking. In development environments,
    installed std._debug, std.strict will be loaded and used for
    runtime checks as before.

Bug fixes

  • Don't hang when option description text contains a '-' character.

[ANN] optparse 1.3 released

01 Sep 19:37
Compare
Choose a tag to compare

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.

[ANN] optparse 1.2 released

04 Jun 04:55
Compare
Choose a tag to compare

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.2 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. I’m still slowly slimming down lua-stdlib in preparation for the next release though, and you can continue to optparse without requiring the installation of all of stdlib.

This release fixes some long standing bugs.

Install it with LuaRocks, using:

luarocks install optparse 1.2

Noteworthy changes in release 1.2 (2017-06-03) [stable]

Bug fixes

  • don't crash when first unrecognized argument is also a handler
    name (boolean, file, finished, flag, etc...)

  • don't hang when help text option table formats long option name
    on its own line before indented description.

[ANN] optparse 1.1.1 released

08 Feb 00:59
Compare
Choose a tag to compare

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.1 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. 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 accounts for the change of namespace with std.strict.

Install it with LuaRocks, using:

luarocks install optparse 1.1.1

Noteworthy changes in release 1.1.1 (2016-02-07) [stable]

Bug fixes

  • Update for change in std.strict module path.

Incompatible changes

  • optparse._VERSION is now optparse.version for consistency with other former stdlib modules.

[ANN] optparse 1.1 released

29 Jan 21:26
Compare
Choose a tag to compare

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 strict and of 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

[ANN] optparse 1.0.1 released

18 Jan 09:09
Compare
Choose a tag to compare

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

Optparse's home page is at http://gvvaughan.github.io/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 fixes a metatable propagation issue that prevented use of object methods on factory created parser objects.

Noteworthy changes in release 1.0.1 (2016-01-17) [stable]

Bug fixes

  • Propagate metatable to parser factory output objects.

Install it with LuaRocks, using:

    luarocks install optparse 1.0.1

[ANN] optparse 1.0 released

18 Jan 09:03
Compare
Choose a tag to compare

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

Optparse's home page is at http://gvvaughan.github.io/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.

Noteworthy changes in release 1.0 (2016-01-17) [stable]

New features:

  • initial standalone release.

Install it with LuaRocks, using:

luarocks install optparse 1.0