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-2dev1 year ago(revision: 3)1,747 downloads
0.7.1-11 year ago1,120,110 downloads
0.7.0-12 years ago238,959 downloads
0.6.0-12 years ago137,824 downloads
0.5.0-12 years ago44,028 downloads
0.4.1-12 years ago1,282 downloads
0.4.0-12 years ago134 downloads
0.3.2-12 years ago312 downloads
0.3.1-12 years ago506 downloads
0.3.0-12 years ago279 downloads
0.2.0-12 years ago93 downloads
0.1.0-12 years ago61 downloads


lua >= 5.1, < 5.5

Dependency for

altdoc, APIcast, apicast-cli, Apache APISIX, candran, ccrunx-compose, ccrunx-image, cosrun, cosy-client, croissant, cyan, danetool, depgraph, Faketorio, fir, fourmi, fusionscript, gh-md-toc, kikgit, lister, loveheaders, love-release, loverocks, lq, ltl, luacheck, luacheck, luacheck, luacov-console, lua-globals, luainlua, luamon, luaprompt, lua-quickcheck, lua-resty-console, lua-rover, luarunner, many2one, mgcints, moonbuild, moonscript, opeth-opeth, petrisport, rockbuild, rockwriter, runstache, Satelito, shiki, shiplog, sncl, teal-cli, tersen, thingsim, tl, todo, wowcig, xcomposer