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-2dev164 days ago(revision: 2)114 downloads
0.7.0-1164 days ago99,840 downloads
0.6.0-1166 days ago133,152 downloads
0.5.0-1166 days ago42,434 downloads
0.4.1-1166 days ago1,272 downloads
0.4.0-1166 days ago124 downloads
0.3.2-1166 days ago302 downloads
0.3.1-1166 days ago496 downloads
0.3.0-1166 days ago273 downloads
0.2.0-1166 days ago87 downloads
0.1.0-1166 days ago55 downloads


lua >= 5.1, < 5.4

Dependency for

altdoc, APIcast, apicast-cli, ccrunx-compose, ccrunx-image, cosy-client, croissant, danetool, depgraph, 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, shiplog, sncl, xcomposer