Applicative command-line option parser for Haskell
open sourceBSD-3-Clausefree
optparse-applicative is a Haskell library for parsing command-line options through an applicative interface: you compose small parsers for options, flags, arguments and subcommands into one. It reads and validates the arguments, reports errors, and generates the usage line, a full help screen and context-sensitive completions for bash, zsh and fish.
Problems it solves
- parse command-line flags and subcommands in a Haskell program
- get a generated --help screen for my Haskell CLI
- add shell completions to a Haskell command-line tool
Features
- applicative parsers for options, flags, arguments and subcommands
- argument validation and error reporting
- generated usage line and help screen
- bash, zsh and fish completions
Alternatives
The same job
These do what optparse-applicative does.
- optparse-generic Auto-generate a Haskell command-line parser from your data type
