A simple Lua command-line option parser with callbacks.

$ luarocks install clopt

clopt is a callback-based command line option parser for Lua.

It supports:
- short (-s) and long (--long) options
- options that take values (--foo bar --bar=baz)
- grouped short flags (-abc)
- double dash parsing termination (--foo -- --bar bar_is_positional)
- user defined callback functions for handling options and validation
- help text usage output

Versions

scm-1dev3 days ago1 download
0.1.1-13 days ago6 downloads

Dependencies

lua >= 5.1

Labels

Manifests