package cmdliner
Declarative definition of command line interfaces for OCaml
Install
Dune Dependency
Authors
Maintainers
Sources
cmdliner-1.3.0.tbz
sha512=4c46bc334444ff772637deae2f5ba03645d7a1b7db523470a1246acfce79b971c764d964cbb02388639b3161b279700d9ade95da550446fb32aa4849c8a8f283
doc/index.html
Cmdliner v1.3.0
Cmdliner
provides a simple and compositional mechanism to convert command line arguments to OCaml values and pass them to your functions.
The library automatically handles syntax errors, help messages and UNIX man page generation. It supports programs with single or multiple commands (like git
) and respect most of the POSIX and GNU conventions.
Manuals
The following manuals are available.
- The tutorial gets you through the steps to write your first command line interface with Cmdliner.
- The Command line interface manual describes how command lines and environment variables are parsed by Cmdliner.
- Tool man pages describes how Cmdliner generates man pages for your tools and how you can format them.
- The examples page has a few annoted examples that show to express the command line interface of a few classic tools with Cmdliner
API
Cmdliner
Declarative definition of command line interfaces.