LuaRocks.org had a security incident in September 2026. Read the incident report.

Simple command line option parser

$ luarocks install optarg

Simple command line option parser for Lua which uses GNU style option help text as specification. A lighter alternative to pl.lapp. It supports prefixed long option (eg. '--long-option'), short option (eg. '-h') s) and options with arguments.

Versions

dev-0dev10 years ago113 downloads
0.2-19 years ago294 downloads
0.1-29 years ago643 downloads
0.1-110 years ago57 downloads

Dependencies

lua >= 5.1

Dependency for

sh-parser-cli

Manifests