package cmdliner
Install
Dune Dependency
Authors
Maintainers
Sources
sha512=4c46bc334444ff772637deae2f5ba03645d7a1b7db523470a1246acfce79b971c764d964cbb02388639b3161b279700d9ade95da550446fb32aa4849c8a8f283
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.
Home page: http://erratique.ch/software/cmdliner
README
Cmdliner — Declarative definition of command line interfaces for OCaml
v1.3.0
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
Dependencies (1)
-
ocaml
>= "4.08.0"
Dev Dependencies
None
-
abella
>= "2.0.8"
-
acgtk
>= "2.0.0"
-
albatross
>= "1.4.3"
-
alcotest
< "1.1.0" | >= "1.6.0"
-
alcotest-async
>= "1.3.0"
- alcotest-js
-
alcotest-lwt
>= "1.3.0"
-
alcotest-mirage
>= "1.3.0"
-
alt-ergo
>= "2.4.2"
-
altgr-ergo
>= "2.4.2"
- aperf
- archsat
-
asak
>= "0.2"
-
atd
>= "2.13.0"
- atdd
- atdpy
- atdts
- awa
-
aws-s3
>= "3.0.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.4.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
- bentov
-
bisect_ppx
>= "2.0.0"
- boltzgen
- boulangerie
- brozip
- bt
- builder
-
builder-web
>= "0.2.0"
- bytepdf
- ca-certs-nss
- caisar
- camels
- camyll
- capnp-rpc-unix
-
caqti
>= "1.8.0"
-
caqti-async
>= "1.8.0"
-
caqti-driver-mariadb
>= "1.8.0"
-
caqti-driver-postgresql
>= "1.8.0"
-
caqti-driver-sqlite3
>= "1.8.0"
-
caqti-dynload
>= "2.0.1"
- caqti-eio
-
caqti-lwt
>= "1.8.0"
-
carton
>= "0.3.0"
-
catala
>= "0.7.0"
-
certify
>= "0.3.0"
- chamelon-unix
- charrua-unix
-
checkseum
>= "0.0.2" & < "0.2.0"
- clim-ppx
- cmdliner-stdlib
- cmdtui-lambda-term
- coclobas
-
cohttp
>= "0.13.0" & < "0.99.0"
-
cohttp-lwt-unix
< "2.5.7" | >= "3.0.0" & != "4.1.1"
- cohttp-lwt-unix-nossl
- cohttp-lwt-unix-ssl
- colibri2
- colibrics
-
commons
>= "1.8.0"
- conex
- conex-mirage-crypto
- conex-nocrypto
- confero
- coq-lsp
-
coq-serapi
>= "8.9.0+0.6.0"
- cosovo
- cppffigen
- craml
-
crowbar
>= "0.2.1"
- crunch
- cucumber
- current
- current-albatross-deployer
-
current_examples
>= "0.4"
-
current_github
>= "0.4"
- current_gitlab
- current_web
-
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"
-
dedukti
>= "2.7"
- depgraph
- dirsift
- diskuvbox
- dkim
- dkim-bin
-
dkml-component-staging-opam32
< "2.2.0~dkml20220801"
-
dkml-component-staging-opam64
< "2.2.0~dkml20220801"
- dkml-install
-
dkml-install-installer
< "0.5.1"
- dkml-install-runner
-
dns
>= "0.6.0" & < "0.19.1"
- dns-cli
-
dns-forward
< "0.9.0"
- dns-lwt-unix
- docfd
-
dockerfile
>= "1.1.0" & < "3.0.0"
- dockerfile-cmd
-
dockerfile-opam
< "8.1.0"
-
docteur
>= "0.0.4"
- dog
-
doi2bib
>= "0.3.0"
- dolmen_bin
- dream-cli
- dryunit
-
dscheck
>= "0.2.0"
-
dune-deps
>= "1.1.0"
- dune-expand
-
dune-release
>= "1.6.1"
- earlybird
- eio-trace
-
eio_linux
>= "0.3"
-
elasticsearch-cli
>= "1.0"
- electrod
-
electrumAnalyzer
>= "0.3.5-2"
-
elpi
>= "1.3.1"
-
encoding
>= "0.0.2"
- erlang
- extism
- ezxenstore
- facteur
- fat-filesystem
- fit
-
forester
>= "2.3"
-
frenetic
>= "3.2.0" & < "5.0.0"
- fsevents-lwt
-
functoria
= "3.1.2" | = "4.4.1"
- functoria-runtime
-
git
>= "1.4.4" & < "1.6.0" | >= "3.0.0"
-
git-unix
= "3.7.1" | >= "3.8.1"
-
github
>= "0.4.0" & < "3.0.0"
- github-unix
-
gitlab-unix
>= "0.1.3"
- gobba
- gospel
- happy-eyeballs-lwt
- happy-eyeballs-miou-unix
- hlarp
-
hll
>= "2.7"
- http-lwt-client
-
hvsock
< "2.0.0" | >= "3.0.1"
-
hxd
>= "0.3.2"
- igvxml
-
index
>= "1.6.1"
-
index-bench
>= "1.6.1"
-
irmin
< "1.0.0"
-
irmin-bench
< "3.0.0" | = "3.2.1" | >= "3.3.0"
- irmin-cli
-
irmin-pack
>= "2.3.0" & < "2.9.1" | >= "3.2.1"
- irmin-pack-tools
- irmin-server
-
irmin-test
>= "2.3.0" & < "3.0.0" | >= "3.2.1"
-
irmin-tezos
< "3.0.0" | >= "3.2.1"
- irmin-tezos-utils
-
irmin-unix
>= "1.0.2" & < "1.2.0" | >= "2.3.0" & < "3.0.0" | >= "3.2.1"
-
jasmin
>= "2023.06.0"
- jitsu
-
js_of_ocaml
>= "2.5" & < "3.0"
- js_of_ocaml-compiler
- jsonschema2atd
- jsonxt
-
kafka
>= "0.3" & < "0.5"
- kafka_lwt
-
ke
>= "0.5"
- ketrew
-
kinetic-client
>= "0.0.9"
- kmt
- lab
- labrys
-
lambdapi
= "2.0.0" | >= "2.2.0"
- learn-ocaml
- learn-ocaml-client
-
letsencrypt
< "0.3.0"
- letsencrypt-app
- lilac
- llopt
- MlFront_Cli
- mastodon-archive-viewer
-
mbr-format
< "1.0.0"
-
mdx
>= "2.2.0"
- mel
- melange
- meldep
- merge-fmt
- message-switch
-
minicaml
>= "0.2.2"
-
mirage
>= "4.6.0"
-
mirage-block-ccm
>= "1.1.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-logs
>= "2.0.0"
-
mirage-runtime
>= "4.5.0"
- mirage-seal
- mirror
- mkaudio
- monorobot
-
mrmime
>= "0.5.0"
- mustache-cli
- named-pipe
-
nbd
>= "0.9.2" & < "4.0.3"
- nbd-tool
- nebula
- niru
- nocoiner
-
nuscr
>= "2.0.0"
-
obandit
>= "0.3.4"
- obuilder
- ocal
- ocaml-gist
- ocamlcodoc
-
ocamlformat
>= "0.21.0"
- oci
-
ocluster
>= "0.2"
-
ocp-browser
>= "1.1.6"
-
ocp-build
= "1.99.20-beta"
-
ocp-indent
>= "1.6.0"
- ocp-indent-nlfork
- ocp-index
- ocp-reloc
- octez-dal-node
- octez-internal-libs
- octez-libs
- octez-node
- octez-proxy-server
- odds
- odep
- odig
- odoc
- ometrics
- omigrate
- omod
-
opam-0install
>= "0.4.1"
-
opam-0install-cudf
< "0.4.1"
- opam-build
- opam-build-revdeps
- opam-bundle
- opam-ci
-
opam-client
>= "2.0.0~beta"
-
opam-compiler
>= "0.2.0"
-
opam-depext
>= "1.2.1"
-
opam-devel
>= "2.0.0~beta"
- opam-dune-lint
- opam-ed
- opam-graph
-
opam-grep
>= "0.2.0"
- opam-installer
-
opam-lib
>= "1.3.1"
- opam-lock
- opam-package-upgrade
-
opam-publish
!= "0.3.0+transition"
- opam-query
- opam-test
-
opam2web
>= "1.3.0" & < "2.0"
-
opass
>= "2.15"
- operf-macro
- opine
-
opium
>= "0.12.0"
- orb
-
ordma
>= "0.0.5"
- ortac-core
- ortac-dune
- ortac-qcheck-stm
- orun
- osbx
- osx-fsevents
-
owi
>= "0.2"
- owork
- passage
- passmakercmd
-
pds
>= "4.13"
-
pg_query
>= "0.9.6"
- pkcs11-cli
-
plotkicadsch
>= "0.2.0"
- polly
- ppx_deriving_cmdliner
-
ppx_deriving_rpc
= "8.1.0"
- ppx_subliner
- 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"
- pyast
-
pyml_bindgen
>= "0.4.1"
- pyre-ast
-
qcow
< "0.10.2" | >= "0.11.0"
- qcow-format
- qcow-tool
- qmp
- queenshead
- randii
- regenerate
-
rosetta
< "0.2.0"
- rotor
-
rpc
>= "1.9.51" & < "5.9.0"
- rpclib
-
runtime_events_tools
>= "0.3"
-
satyrographos
< "0.0.1.7"
- shared-block-ring
- sherlodoc
- sibylfs
- sid
- slack
- slack-backup
- slacko
- slipshow
- smtml
- snabela
- solo5-elftool
- spin
- spotify-cli
- sslconf
-
starred_ml
>= "0.0.4"
- sun
- tallgeese
-
tar-format
>= "0.2.0" & < "0.7.1"
-
tcpip
>= "8.0.0"
- telltime
-
tensorflow
>= "0.0.4"
- tezos-context-hash-irmin
-
tezos-node
>= "8.0"
- tezos-proxy-server
- tidy_email_mailgun
- tidy_email_sendgrid
- tidy_email_smtp
- timmy
-
tldr
>= "0.3.0"
-
tls
>= "0.15.3" & < "0.16.0" | >= "1.0.0"
- tls-lwt
- tlstunnel
- toc
-
topkg-care
>= "1.0.5"
-
torch
< "v0.16.0"
-
touist
>= "3.5.0"
- travis-senv
-
tuntap
>= "1.0.0" & != "1.4.1"
- u2f
- uring
- uring-trace
- usbmux
-
user-setup
>= "0.4"
- valentine
-
vchan
< "6.0.2"
- vchan-unix
-
vchan-xen
< "6.0.2"
- vecosek
- vendredi
- vhd-tool
- vimebac
- vpnkit
- wayland
- webauthn
- weevil
- 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.2.0"
Conflicts
None