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-2dev121 days ago(revision: 2)84 downloads
0.7.0-1121 days ago72,023 downloads
0.6.0-1123 days ago132,858 downloads
0.5.0-1123 days ago42,213 downloads
0.4.1-1123 days ago1,272 downloads
0.4.0-1123 days ago124 downloads
0.3.2-1123 days ago302 downloads
0.3.1-1123 days ago496 downloads
0.3.0-1123 days ago273 downloads
0.2.0-1123 days ago87 downloads
0.1.0-1123 days ago55 downloads


lua >= 5.1, < 5.4

Dependency for

altdoc, APIcast, apicast-cli, ccrunx-compose, ccrunx-image, cosy-client, croissant, danetool, depgraph, euluna, Faketorio, fourmi, fusionscript, gh-md-toc, kikgit, 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, rockwriter, runstache, sncl, xcomposer