Computer Laboratory

OCaml Labs

cmdliner

Author Daniel Bünzli <daniel.buenzli i@erratique.ch>
License BSD3
Homepage http://erratique.ch/software/cmdliner
Tags cli, system and declarative
Maintainer Daniel Bünzli <daniel.buenzl i@erratique.ch>
Dependencies ocamlfind
Last update Mar 24, 2014
Source http://erratique.ch/software/cmdliner/releases/cmdliner-0.9.4.tbz
5089b4b69993ddc5ce4aac0e30d0c641

Declarative definition of command line interfaces for OCaml

Cmdliner is a module for the declarative definition of command line interfaces.

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 syntax errors, help messages and UNIX man page generation. It supports programs with single or multiple commands and respects most of the [POSIX][1] and [GNU][2] conventions.

Cmdliner is made of a single independent module and distributed under the BSD3 license.

[1]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html [2]: http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html