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.
The following manuals are available.
cmdlinerCmdliner Declarative definition of command line interfaces.Cmdliner.Arg Terms for command line arguments.Cmdliner.Cmd Commands.Cmdliner.Manpage Man pages.Cmdliner.Term Terms.