Lua argparse
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.
At a glance
- Editor score6.3 / 10
- PricingFree plan
- Best forLua CLIs needing completion scripts
- Free planYes
- Paid fromFree
- Shell completionYes
- Facts checked17 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
Lua argparse fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Shell completion | Yes |
| Nested subcommands | Yes |
| Code generation | Not verified |
| Config file support | Not verified |
| Environment variables | Not verified |
| Typed API | Not verified |
| Deployment | Self-hosted |
| Support | Docs |
| Built for | Solo, Small business, Mid-market (editorial estimate) |
| Pricing | Free plan |
| Website | argparse.readthedocs.io |
| Facts checked | 17 Nov 2026 |
Alternatives to Lua argparse
- ClapA free Rust crate with typed parsing, nested commands, validation, and completions.9.4
- ClickA free, open-source toolkit for typed, nested Python command-line applications.9.3
- TyperFree, open-source typed CLI framework with nesting, completions, and configuration support.9.2
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
Featured on iTechGuides
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