mte/unikernel/duniverse/cmdliner
2025-11-11 02:07:51 +01:00
..
doc 2025-11-11 02:07:51 +01:00
pkg 2025-11-11 02:07:51 +01:00
src 2025-11-11 02:07:51 +01:00
test 2025-11-11 02:07:51 +01:00
.gitignore 2025-11-11 02:07:51 +01:00
.merlin 2025-11-11 02:07:51 +01:00
.ocp-indent 2025-11-11 02:07:51 +01:00
_tags 2025-11-11 02:07:51 +01:00
B0.ml 2025-11-11 02:07:51 +01:00
BRZO 2025-11-11 02:07:51 +01:00
build.ml 2025-11-11 02:07:51 +01:00
CHANGES.md 2025-11-11 02:07:51 +01:00
cmdliner.opam 2025-11-11 02:07:51 +01:00
DEVEL.md 2025-11-11 02:07:51 +01:00
dune 2025-11-11 02:07:51 +01:00
dune-project 2025-11-11 02:07:51 +01:00
LICENSE.md 2025-11-11 02:07:51 +01:00
Makefile 2025-11-11 02:07:51 +01:00
README.md 2025-11-11 02:07:51 +01:00

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.