package cmdliner
Declarative definition of command line interfaces for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
cmdliner-2.0.0.tbz
sha512=a7bd4eeb0cef7c08bca73b0077a65f748c19a230544133b39fc3360feb2cf0af08416a8b84031c94a2f4a007d5920a4db1368d87b9eeca561671828e2dad2885
doc/index.html
Cmdliner v2.0.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 command line completion, 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 makes you write your first command line interface with Cmdliner.
- The cookbook has a few off-the-shelf recipes, tips about source code structure, and blueprints to define your command lines with Cmdliner.
- The command line interface manual describes how command lines and environment variables are parsed by Cmdliner and how command line completion is performed. This can be communicated to the users of your tools.
- The tool man page manual describes how Cmdliner generates man pages for your tools and their commands and how you can format them.
- The examples page has examples of a some classic UNIX tools with their command line interface implemented by Cmdliner.
Library cmdliner
Cmdliner
Declarative definition of command line interfaces.
Cmdliner.Arg
Terms for command line arguments.Cmdliner.Cmd
Commands.Cmdliner.Manpage
Man pages.Cmdliner.Term
Terms.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page