package cmdliner
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ca762a40084c878ab083a41cdb424f8e229a453516ab72bde8a9b3c036247c3c
md5=3674ad01d4445424105d33818c78fba8
Description
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.
README
Cmdliner — Declarative definition of command line interfaces for OCaml
v1.0.3
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
Contact: Daniel Bünzli <daniel.buenzl i@erratique.ch>
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
Dependencies (1)
-
ocaml
>= "4.03.0" & < "5.0"
Dev Dependencies
None
-
acgtk
>= "1.5.1" & < "2.0.0"
-
albatross
< "1.4.3"
-
alcotest
< "1.6.0"
-
alcotest-async
>= "1.3.0" & < "1.6.0"
-
alcotest-js
< "1.6.0"
-
alcotest-lwt
>= "1.3.0" & < "1.6.0"
-
alcotest-mirage
>= "1.3.0" & < "1.6.0"
-
alt-ergo
>= "2.4.0" & < "2.4.2"
-
altgr-ergo
>= "2.4.0" & < "2.4.2"
- aperf
- archsat
-
asak
>= "0.2" & < "0.4"
-
awa
< "0.1.1"
-
aws-s3
>= "3.0.0" & < "4.6.0"
-
aws-s3-async
< "3.0.0"
-
b0
< "0.0.4"
-
bap
< "0.9.5" | = "0.9.9"
-
bap-abi
< "2.2.0"
-
bap-api
< "2.2.0"
-
bap-beagle
< "2.3.0"
-
bap-bil
< "2.2.0"
- bap-byteweight-frontend
-
bap-cache
< "2.2.0"
- bap-callsites
-
bap-demangle
< "2.5.0"
-
bap-dump-symbols
< "2.2.0"
-
bap-frames
< "2.1.1"
-
bap-frontend
< "2.2.0"
- bap-fsi-benchmark
-
bap-ida-plugin
< "2.2.0"
-
bap-llvm
< "2.2.0"
- bap-main
-
bap-mc
< "2.0.0"
-
bap-objdump
< "2.2.0"
-
bap-optimization
< "2.2.0"
- bap-phoenix
- bap-piqi
-
bap-plugins
< "2.2.0"
-
bap-powerpc
>= "2.2.0"
-
bap-std
>= "1.3.0"
-
bap-symbol-reader
< "2.2.0"
-
bap-taint
< "1.4.0"
- bap-taint-propagator
-
bap-term-mapper
< "2.2.0"
- bap-trace
- bap-veri
- bap-warn-unused
- bap-x86
-
batsh
>= "0.0.4"
- benchpress
- benchpress-server
-
bisect_ppx
>= "2.0.0"
- boltzgen
- brozip
- bt
-
builder
< "0.3.1"
-
builder-web
< "0.2.0"
- bun
- bytepdf
-
ca-certs-nss
< "3.77"
- camels
-
camyll
< "0.4.1"
-
capnp-rpc-unix
< "1.2.3"
-
caqti
= "1.7.0"
-
caqti-async
= "1.7.0"
-
caqti-lwt
= "1.7.0"
- certify
- charrua-unix
-
checkseum
>= "0.0.2" & < "0.2.0"
- cmdliner-stdlib
- cmdtui-lambda-term
- coclobas
-
cohttp
>= "0.13.0" & < "0.99.0"
-
cohttp-lwt-unix
!= "4.1.2" & < "5.2.0"
- cohttp-lwt-unix-nossl
- cohttp-lwt-unix-ssl
-
coin
< "0.1.2"
- conex
- conex-mirage-crypto
- conex-nocrypto
- confero
-
coq-serapi
< "8.15.0+0.15.2"
- craml
-
crowbar
< "0.2.1"
-
crunch
< "3.3.0"
-
current
< "0.6"
-
current_examples
< "0.6"
-
current_web
< "0.6"
-
datakit
>= "0.10.0"
-
datakit-bridge-github
>= "0.10.0"
- datakit-bridge-local-git
-
datakit-ci
>= "0.10.0"
-
datakit-client
< "0.11.0"
- datakit-client-9p
-
datakit-github
>= "0.9.0"
-
datakit-server
>= "0.10.0" & < "0.11.0"
-
decompress
>= "0.8" & < "1.0.0" | >= "1.3.0" & < "1.4.3"
- depgraph
- dirsift
-
diskuvbox
< "0.2.0"
-
dkim
< "0.4.0"
-
dns
>= "0.6.0" & < "0.19.1"
-
dns-cli
< "6.2.0"
-
dns-forward
< "0.9.0"
- dns-lwt-unix
-
dockerfile
>= "1.1.0" & < "3.0.0"
- dockerfile-cmd
-
dockerfile-opam
< "8.1.0"
- dog
-
doi2bib
>= "0.3.0" & < "0.6.2"
-
dolmen_bin
< "0.7"
-
dream-cli
< "0.2.0"
- dryunit
-
dscheck
>= "0.2.0"
-
duff
< "0.3"
-
dune-deps
>= "1.1.0"
- dune-expand
-
dune-release
< "1.6.1"
-
earlybird
< "1.0.0"
-
elasticsearch-cli
>= "1.0"
- electrod
-
electrumAnalyzer
>= "0.3.5-2"
-
elpi
>= "1.3.1"
-
equinoxe
< "0.2.0"
- erlang
-
ez_cmdliner
< "0.4.3"
-
ezxenstore
< "0.4.3"
- facteur
-
fat-filesystem
< "0.15.1"
-
frenetic
>= "3.2.0" & < "5.0.0"
- fsevents-lwt
-
functoria
< "4.0.0"
-
functoria-runtime
< "4.0.0"
-
git
>= "1.4.4" & < "1.6.0" | >= "3.0.0" & != "3.7.1" & < "3.8.1"
-
git-unix
>= "1.10.1" & < "3.0.0"
-
github
>= "0.4.0" & < "3.0.0"
- github-unix
- gobba
-
gospel
< "0.2.0"
-
happy-eyeballs-lwt
< "0.2.0"
- hlarp
-
hll
>= "2.7"
-
http-lwt-client
< "0.0.6"
-
hvsock
< "3.0.1"
-
hxd
< "0.3.2"
- igvxml
-
index
>= "1.3.0"
- index-bench
-
irmin
< "1.0.0"
- irmin-bench
- irmin-cli
-
irmin-pack
>= "2.3.0"
-
irmin-test
>= "2.3.0"
- irmin-tezos
-
irmin-unix
>= "1.0.2" & < "1.2.0" | >= "2.3.0"
- jitsu
-
js_of_ocaml
>= "2.5" & < "3.0"
-
js_of_ocaml-compiler
< "4.1.0"
- jsonxt
-
kafka
>= "0.3" & < "0.5"
- kafka_lwt
- ketrew
-
kinetic-client
>= "0.0.9"
-
lab
< "0.1.4"
- labrys
-
lambdapi
>= "2.0.0" & < "2.2.0"
-
learn-ocaml
< "0.14.1"
-
learn-ocaml-client
< "0.14.1"
-
letsencrypt
< "0.3.0"
-
letsencrypt-app
< "0.5.0"
- llopt
-
mastodon-archive-viewer
< "0.4.0"
-
mbr-format
< "1.0.0"
-
mdx
< "2.2.0"
-
merge-fmt
< "0.3"
- message-switch
-
minicaml
>= "0.2.2"
-
mirage
>= "4.0.0" & < "4.5.0"
-
mirage-block-xen
< "2.0.0"
-
mirage-console
>= "2.1.2" & < "2.2.0"
- mirage-console-xen-cli
-
mirage-dns
>= "2.6.0" & < "3.0.0"
- mirage-seal
- mirror
-
mkaudio
< "1.1.3"
- monorobot
-
mrmime
= "0.5.0"
- named-pipe
-
nbd
>= "0.9.2" & < "4.0.3"
- nebula
- nocoiner
-
obandit
>= "0.3.4"
-
obuilder
< "0.4"
- ocal
- ocaml-gist
- ocamlcodoc
-
ocamlformat
< "0.21.0"
-
ocamlformat-rpc
< "0.21.0"
- oci
-
ocp-browser
>= "1.1.6" & < "1.3.4"
-
ocp-build
>= "1.99.20-beta"
-
ocp-indent
>= "1.6.0"
- ocp-indent-nlfork
-
ocp-index
< "1.3.4"
- ocp-reloc
-
odds
< "1.1"
-
odig
< "0.0.8"
- odoc
-
ometrics
>= "0.1.2"
-
omigrate
< "0.3.0"
-
omod
< "0.0.3"
-
opam-0install
< "0.4.3"
-
opam-0install-cudf
< "0.4.1"
-
opam-build
< "0.2.1"
- opam-build-revdeps
- opam-bundle
- opam-ci
-
opam-client
>= "2.0.0~beta" & < "2.2.0~alpha"
-
opam-compiler
< "0.2.0"
-
opam-depext
>= "1.2.1"
-
opam-devel
>= "2.0.0~beta" & < "2.2.0~alpha"
- opam-ed
- opam-installer
-
opam-lib
>= "1.3.1"
- opam-lock
- opam-package-upgrade
-
opam-publish
!= "0.3.0+transition" & < "2.2.0"
- opam-query
-
opam-test
< "0.2.1"
-
opam2web
>= "1.3.0" & < "2.0"
-
opass
>= "2.15"
- operf-macro
-
opium
>= "0.12.0"
-
ordma
>= "0.0.5"
- orun
- osbx
- oskel
- osx-fsevents
-
owi
>= "0.2"
- owork
- passmakercmd
-
pds
>= "4.13"
-
pecu
< "0.4"
-
pg_query
>= "0.9.6"
- pkcs11-cli
-
plotkicadsch
>= "0.2.0"
-
polly
< "0.4.1"
- ppx_deriving_cmdliner
-
ppx_deriving_rpc
= "8.1.0"
- prelude
- prof_spacetime
-
prometheus-app
>= "0.4"
-
protocol-9p
< "0.12.1"
- protocol-9p-tool
-
protocol-9p-unix
< "0.12.1"
-
publish
< "0.3.4+transition"
-
pyml_bindgen
< "0.3.0"
-
pyre-ast
< "0.1.9"
-
qcow
< "0.10.2" | >= "0.11.0"
- qcow-format
- qcow-tool
-
qmp
< "0.20.0"
- regenerate
-
rosetta
< "0.3.0"
- rotor
-
rpc
>= "1.9.51" & < "5.9.0"
-
rpclib
< "9.0.0"
-
satyrographos
< "0.0.1.7"
-
shared-block-ring
< "3.0.1"
- sibylfs
- sid
- slack
- slack-backup
- slacko
- slipshow
- snabela
-
solo5-elftool
< "0.3.1"
- spin
- spotify-cli
- sslconf
- tallgeese
-
tar-format
>= "0.2.0" & < "0.7.1"
- telltime
-
tensorflow
>= "0.0.4"
- tezos-context-hash-irmin
-
tezos-node
>= "8.0" & < "13.0"
- timmy
-
tldr
>= "0.3.0"
- tlstunnel
- topkg-care
-
torch
< "v0.16.0"
-
touist
>= "3.5.0"
- travis-senv
-
tuntap
>= "1.0.0" & != "1.4.1" & < "2.0.1"
- u2f
-
uring
< "0.3"
- usbmux
-
user-setup
>= "0.4"
-
uuuu
< "0.2.0"
- valentine
-
vchan
< "6.0.2"
-
vchan-unix
< "6.0.2"
-
vchan-xen
< "6.0.2"
- vecosek
- vhd-tool
- vimebac
- vpnkit
-
webauthn
< "0.2.0"
- xapi-idl
- xapi-inventory
- xapi-rrd-transport
- xe-unikernel-upload
- xen-block-driver
- xen-disk
- xen-evtchn
- xen-evtchn-unix
-
xen-gnt
>= "1.0.0"
- xenctrl
- xentropyd
-
yuscii
< "0.3.0"
Conflicts
None