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)3,578 downloads
0.7.1-12 years ago2,502,733 downloads
0.7.0-13 years ago239,011 downloads
0.6.0-13 years ago139,913 downloads
0.5.0-13 years ago44,899 downloads
0.4.1-13 years ago1,289 downloads
0.4.0-13 years ago141 downloads
0.3.2-13 years ago320 downloads
0.3.1-13 years ago513 downloads
0.3.0-13 years ago284 downloads
0.2.0-13 years ago98 downloads
0.1.0-13 years ago66 downloads


lua >= 5.1, < 5.5

Dependency for

altdoc, amber-apigw, APIcast, apicast-cli, Apache APISIX, atlas, candran, cascproxy, ccrunx-compose, ccrunx-image, combustion, cosrun, cosy-client, croissant, cyan, danetool, depgraph, erde, Faketorio, fir, fourmi, fusionscript, gh-md-toc, javaimp, kikgit, lapis, lapis-eswidget, lister, loveheaders, love-release, loverocks, lq, ltl, luabundler, 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