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-2dev3 years ago(revision: 3)4,588 downloads
0.7.1-13 years ago3,255,199 downloads
0.7.0-14 years ago239,050 downloads
0.6.0-14 years ago141,523 downloads
0.5.0-14 years ago45,117 downloads
0.4.1-14 years ago1,303 downloads
0.4.0-14 years ago155 downloads
0.3.2-14 years ago332 downloads
0.3.1-14 years ago527 downloads
0.3.0-14 years ago298 downloads
0.2.0-14 years ago112 downloads
0.1.0-14 years ago80 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, 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, luatest, many2one, mgcints, moonbuild, moonscript, mulua, nomad-lua, opeth-opeth, petrisport, rockbuild, rockwriter, runstache, santoku-cli, Satelito, shiki, shiplog, sncl, teal-cli, tersen, thingsim, tl, todo, watcher, wowcig, xcomposer