• Stars
    star
    276
  • Rank 144,107 (Top 3 %)
  • Language
    OCaml
  • License
    ISC License
  • Created about 11 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Declarative definition of command line interfaces for OCaml

Cmdliner β€” Declarative definition of command line interfaces for OCaml

%%VERSION%%

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 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.

Home page: 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 and API reference is automatically generated by from the source interfaces. It can be consulted online or via odig doc cmdliner.

Sample programs

If you installed Cmdliner with opam sample programs are located in the directory opam config var cmdliner:doc. These programs define the command line of some classic programs.

In the distribution sample programs are located in the test directory of the distribution. They can be built and run with:

topkg build --tests true && topkg test

More Repositories

1

react

Declarative events and signals for OCaml
OCaml
133
star
2

tsdl

Thin bindings to SDL for OCaml
OCaml
97
star
3

brr

Browser programming toolkit for OCaml
OCaml
90
star
4

vg

Declarative 2D vector graphics for OCaml
OCaml
86
star
5

logs

Logging infrastructure for OCaml
OCaml
84
star
6

down

An OCaml toplevel (REPL) upgrade
OCaml
78
star
7

topkg

The transitory OCaml software packager
OCaml
69
star
8

fmt

OCaml Format pretty-printer combinators
OCaml
68
star
9

bos

Basic OS interaction for OCaml
OCaml
63
star
10

rpi-boot-ocaml

Raspberry Pi boot support for the OCaml system (unreleased)
OCaml
53
star
11

tgls

Thin bindings to OpenGL {3,4} and OpenGL ES {2,3} for OCaml
OCaml
53
star
12

xmlm

Streaming XML codec for OCaml
OCaml
53
star
13

hmap

Heterogeneous value maps for OCaml
OCaml
53
star
14

jsonm

Non-blocking streaming JSON codec for OCaml
OCaml
46
star
15

note

Declarative events and signals for OCaml
OCaml
45
star
16

affect

Composable concurrency primitives with OCaml effects handlers (unreleased)
OCaml
45
star
17

cmarkit

CommonMark parser and renderer for OCaml
OCaml
44
star
18

uuidm

Universally unique identifiers (UUIDs) for OCaml
OCaml
43
star
19

gg

Basic types for computer graphics in OCaml
OCaml
42
star
20

rel

Relational database programming for OCaml (unreleased)
OCaml
40
star
21

pvec

Persistent vectors for OCaml
OCaml
40
star
22

ptime

POSIX time for OCaml
OCaml
38
star
23

rresult

Result value combinators for OCaml
OCaml
37
star
24

mtime

Monotonic wall-clock time for OCaml
OCaml
33
star
25

qrc

QR code encoder for OCaml
OCaml
32
star
26

astring

Alternative String module for OCaml
OCaml
31
star
27

uutf

Non-blocking streaming Unicode codec for OCaml
OCaml
29
star
28

fpath

File paths for OCaml
OCaml
27
star
29

trel

Relational programming for OCaml (unreleased)
OCaml
25
star
30

mu

Declarative music for OCaml (unreleased)
OCaml
24
star
31

uuseg

Unicode text segmentation for OCaml
OCaml
23
star
32

uunf

Unicode text normalization for OCaml
OCaml
22
star
33

lit

Lightweight OpenGL-based rendering engine for OCaml (unreleased)
OCaml
21
star
34

hyperbib

Publish annotated bibliographies
OCaml
21
star
35

ppx_utf8_lit

UTF-8 string literals and patterns for OCaml (unreleased)
OCaml
21
star
36

htmlact

Active HTML elements for dynamic webpages (unreleased)
OCaml
21
star
37

zipc

ZIP archive and deflate codec for OCaml
OCaml
21
star
38

webs

HTTP toolkit for OCaml (unreleased)
OCaml
20
star
39

otfm

OpenType font decoder for OCaml
OCaml
20
star
40

uucp

Unicode character properties for OCaml
OCaml
20
star
41

fut

Future values for asynchronous programming in OCaml (unreleased)
OCaml
19
star
42

htmlit

HTML generation combinators for OCaml
OCaml
17
star
43

carcass

Define and generate file and directory carcasses (unreleased)
OCaml
16
star
44

stdlib-utf

Add UTF decoding support to the OCaml Stdlib
OCaml
16
star
45

omod

Lookup and load installed OCaml modules
OCaml
16
star
46

uucd

Unicode character database decoder for OCaml
OCaml
16
star
47

nbcodec

Non-blocking codec interface design for OCaml (pattern, experiment)
OCaml
15
star
48

utext

Unicode text for OCaml
OCaml
15
star
49

typegist

Reflect the essence of OCaml types as values
OCaml
14
star
50

serialkit

Serialization formats toolkit for OCaml (unreleased)
OCaml
14
star
51

useri

Declarative user input for OCaml (unreleased)
OCaml
13
star
52

sexpm

s-expression codecs and updates for OCaml
OCaml
13
star
53

qoic

QOI image codec for OCaml (unreleased)
OCaml
12
star
54

vz

Declarative data visualization for OCaml (experiment, unreleased)
OCaml
11
star
55

jsonc

JSON data description and codecs for OCaml (unreleased)
OCaml
9
star
56

pixeldrift

Find perceptible pixel differences with OCaml (unreleased)
OCaml
9
star
57

tick

Best-effort monotonic ticks for MirageOS (unreleased, design experiment)
OCaml
8
star
58

ttweetnacl

Thin bindings to TweetNaCl cryptography for OCaml
OCaml
8
star
59

bytesrw

Composable byte stream readers and writers for OCaml
OCaml
7
star
60

webbrowser

Open and reload URIs in browsers from OCaml
OCaml
7
star
61

asetmap

Alternative, compatible, OCaml standard library Sets and Maps
OCaml
6
star
62

remat

Publish digitized documents on the web (unreleased)
OCaml
6
star
63

dicomm

Non-blocking streaming DICOM data element decoder for OCaml (unreleased)
OCaml
6
star
64

rtime

Timelines for OCaml's React module (obsolete, deprecated)
OCaml
6
star
65

rpng

Simple PNG codec for OCaml (experiment, unreleased)
OCaml
5
star
66

opam-repo-ocamlnat

Dockerfile
3
star
67

logr

Static ring web logger
Shell
3
star
68

ocaml-lltest

OCaml library linking tests
Makefile
3
star
69

webglue

Command line tool to build static websites (experiment, unreleased)
OCaml
3
star