A feature-rich command-line argument parser

$ luarocks install argparse

Argparse is a feature-rich command line parser for Lua inspired by argparse for Python.

Argparse supports positional arguments, options, flags, optional arguments, subcommands and more. Argparse automatically generates usage, help, and error messages, and can generate shell completion scripts.


scm-2dev10 days ago0 downloads
0.7.0-18 days ago4,467 downloads
0.6.0-110 days ago132,321 downloads
0.5.0-110 days ago41,202 downloads
0.4.1-110 days ago1,272 downloads
0.4.0-110 days ago124 downloads
0.3.2-110 days ago301 downloads
0.3.1-110 days ago496 downloads
0.3.0-110 days ago273 downloads
0.2.0-110 days ago87 downloads
0.1.0-110 days ago55 downloads


lua >= 5.1, < 5.4

Dependency for

APIcast, apicast-cli, ccrunx-compose, ccrunx-image, cosy-client, croissant, depgraph, euluna, Faketorio, fourmi, fusionscript, gh-md-toc, loveheaders, love-release, loverocks, lq, luacheck, luacheck, luacov-console, luainlua, luamon, luaprompt, lua-quickcheck, lua-resty-console, lua-rover, mgcints, moonscript, nelua, opeth-opeth, petrisport, runstache, sncl, xcomposer