package cmdliner
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha512=a7bd4eeb0cef7c08bca73b0077a65f748c19a230544133b39fc3360feb2cf0af08416a8b84031c94a2f4a007d5920a4db1368d87b9eeca561671828e2dad2885
doc/README.html
Cmdliner — Declarative definition of command line interfaces for OCaml
Cmdliner allows the declarative definition of command line interfaces for OCaml.
It provides a simple and compositional mechanism to convert command line arguments to OCaml values and pass them to your functions. The module automatically handles command line completion, syntax errors, help messages and UNIX man page generation. It supports programs with single or multiple commands and respects most of the POSIX and GNU conventions.
Cmdliner has no dependencies and is distributed under the ISC license.
Homepage: http://erratique.ch/software/cmdliner
Installation
Cmdliner can be installed with opam
:
opam install cmdliner
If you don't use opam
consult the opam
file for build instructions.
Documentation
The documentation can be consulted online or via odig doc cmdliner
.
Questions are welcome but better asked on the OCaml forum than on the issue tracker.
Sample programs
A few examples and blueprints can be found in the documentation and in the test directory.