Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

Lua argparse

Free#30 of 60 in Command-Line Interface Frameworks

Lua argparse: A capable, free Lua parser with subcommands, validation, callbacks, and shell completions. Ranked #30 of 60 in Command-Line Interface Frameworks by our editors (6.3/10); pricing: Free plan; best for lua CLIs needing completion scripts.

6.3/10Editor score
Lua argparse6.3 Visit Lua argparse

At a glance

  • Editor score
    6.3 / 10
  • Pricing
    Free plan
  • Best for
    Lua CLIs needing completion scripts
  • Free plan
    Yes
  • Paid from
    Free
  • Shell completion
    Yes
  • Facts checked
    17 Nov 2026
  • Where it wins

    • Parses positional arguments, options, flags, and optional arguments
    • Supports subcommands with inherited parent options and type conversion
    • Generates Bash, Zsh, and Fish completion scripts with automatic help
  • Where it doesn't

    • Focused on Lua command-line parsing rather than a wider CLI toolkit
    • Deployment is self-hosted within the Lua application
    • Support is provided through documentation channels

Our verdict on Lua argparse

Lua argparse is an open-source command-line argument parsing library for Lua applications. It handles positional arguments, options, flags, optional arguments, and commands while generating usage, help, and error messages. Its audience is developers building Lua-based command-line tools who need structured parsing without adopting a hosted service. The project is distributed under the MIT license and fits solo, small, and mid-market teams managing their own Lua applications.

Its standout strength is breadth within argument handling. Subcommands can inherit parent options, while validation and type conversion help turn command-line input into expected values. Callbacks and actions let parsers and commands trigger application behavior, and configurable help grouping and message layout provide control over generated guidance. Shell integration extends that experience: the library generates completion scripts for Bash, Zsh, and Fish, making it suitable for CLIs that need discoverable commands and options across common shells.

Installation stays focused on a self-managed Lua workflow. Developers can obtain the module through LuaRocks or a direct source download, then integrate it into their application. The support channel is documentation, so teams should be comfortable reading and maintaining a library as part of their own deployment. Lua argparse is a strong fit when the priority is a free parser with nested commands, callbacks, validation, and completion generation. Teams seeking a broader CLI toolkit beyond parsing should evaluate alternatives with a wider feature scope.

Your product? Our editors can test Lua argparse in depth and publish a review, labelled as paid · from $149/mo →

Lua argparse pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on argparse.readthedocs.io

Lua argparse fact sheet

Free planYes
Paid fromFree
Shell completionYes
Nested subcommandsYes
Code generationNot verified
Config file supportNot verified
Environment variablesNot verified
Typed APINot verified
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market (editorial estimate)
PricingFree plan
Websiteargparse.readthedocs.io
Facts checked17 Nov 2026

Alternatives to Lua argparse

See all Lua argparse alternatives →

Used Lua argparse? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Lua argparse for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Lua argparse 6.3/10

Lua argparse is listed in our Command-Line Interface Frameworks directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/lua-argparse/"><img src="https://www.itechguides.com/best/badge/lua-argparse.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Nov 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update