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-2dev191 days ago(revision: 3)683 downloads
0.7.1-1191 days ago304,168 downloads
0.7.0-11 year ago238,588 downloads
0.6.0-11 year ago135,307 downloads
0.5.0-11 year ago43,402 downloads
0.4.1-11 year ago1,276 downloads
0.4.0-11 year ago128 downloads
0.3.2-11 year ago306 downloads
0.3.1-11 year ago500 downloads
0.3.0-11 year ago275 downloads
0.2.0-11 year ago89 downloads
0.1.0-11 year ago57 downloads


lua >= 5.1, < 5.5

Dependency for

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