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-2dev2 years ago(revision: 3)2,476 downloads
0.7.1-12 years ago1,873,882 downloads
0.7.0-13 years ago239,004 downloads
0.6.0-13 years ago138,922 downloads
0.5.0-13 years ago44,527 downloads
0.4.1-13 years ago1,288 downloads
0.4.0-13 years ago140 downloads
0.3.2-13 years ago319 downloads
0.3.1-13 years ago512 downloads
0.3.0-13 years ago283 downloads
0.2.0-13 years ago97 downloads
0.1.0-13 years ago65 downloads


lua >= 5.1, < 5.5

Dependency for

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