$ 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
Dependencies
lua >= 5.1