package cmdliner
Build not checkedInstall
dune-project
Dependency
Authors
Maintainers
Sources
sha256=5c2a93d44af8a38996a2c0f80fbd7970fe4751f104be470cafa069353fc004c0
md5=fe2213d0bc63b1e10a2d0aa66d2fc8d9
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.4
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 cmdlinerIf 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"
Dev Dependencies
None
Optional Dependencies
None
-
acgtk
< "2.1.0" -
albatross
< "1.4.3" -
alcotest
< "1.7.0" -
alcotest-async
< "1.7.0" -
alt-ergo
>= "2.4.0" & < "2.4.2" -
altgr-ergo
>= "2.4.0" & < "2.4.2" -
arc
>= "0.0.2" -
asak
< "0.4" -
awa
< "0.2.0" -
aws-s3
< "4.6.0" -
bap-beagle
< "2.3.0" - bap-byteweight-frontend
- bap-callsites
-
bap-demangle
< "2.5.0" - bap-fsi-benchmark
- bap-main
- bap-phoenix
- bap-piqi
- bap-powerpc
- bap-std
- bap-taint-propagator
- bap-trace
- bap-warn-unused
- bap-x86
- bentov
-
bisect_ppx
>= "2.0.0" -
boltzgen
< "0.9.5" -
builder
< "0.3.2" -
builder-web
< "0.2.0" - bun
- bytepdf
-
ca-certs-nss
< "3.77" -
camels
< "1.0.0" -
camyll
< "0.4.1" -
capnp-rpc-unix
< "1.2.3" -
caqti
= "1.7.0" -
caqti-async
= "1.7.0" -
caqti-lwt
= "1.7.0" -
carton
< "0.7.2" -
catala
< "0.7.0" -
catala-format
>= "0.2.0" & < "1.2.0" -
cca
>= "0.6.2" - certify
-
charrua-unix
< "1.6.0" -
checkseum
>= "0.0.2" & < "0.2.0" - clim
- clim-ppx
- cmdliner-stdlib
- cmdtui-lambda-term
-
cohttp-lwt-unix
!= "4.1.2" & < "5.3.0" -
coin
< "0.1.2" -
conex
< "1.0.0" -
conex-mirage-crypto
< "1.0.0" - confero
- console
- console-eio
-
coq-serapi
< "8.15.0+0.15.2" - cosovo
- cppffigen
- craml
-
crowbar
< "0.2.1" -
crunch
< "4.0.0" -
current
< "0.6.2" -
current_examples
< "0.6.2" -
current_github
< "0.6.2" -
current_web
< "0.6.2" -
decompress
< "1.0.0" | >= "1.3.0" & < "1.4.3" - depgraph
-
diffast-git-cli
< "0.3.5.1" - dirsift
-
diskuvbox
< "0.2.0" - dkml-install
- dkml-install-installer
- dkml-install-runner
- dockerfile-cmd
-
dockerfile-opam
< "8.2.7" -
docteur
< "0.0.4" -
dolmen_bin
< "0.7" -
dream-cli
< "0.2.0" - dryunit
-
dscheck
>= "0.2.0" -
duff
< "0.3" -
dune-deps
>= "1.1.0" & < "1.4.0" - dune-expand
-
dune-release
< "1.6.1" - dune_deps_extra
-
earlybird
< "1.2.0" - elasticsearch-cli
- electrod
-
elpi
< "3.7.3" -
equinoxe
< "0.2.0" - erlang
-
ez_cmdliner
< "0.4.3" - facteur
-
fat-filesystem
< "0.15.1" -
fit
< "1.0.3" - fsevents-lwt
-
functoria-runtime
< "4.0.0" -
git
>= "3.2.0" & < "3.15.0" -
git-unix
< "3.15.0" -
github-unix
< "4.5.0" - gobba
-
gospel
< "0.2.0" -
happy-eyeballs-lwt
< "0.6.0" - hlarp
-
hll
< "4.3" -
http-lwt-client
< "0.0.8" -
hvsock
< "3.0.1" -
hxd
< "0.3.2" - igvxml
-
index
>= "1.3.0" - index-bench
-
irmin-bench
< "3.11.0" -
irmin-cli
< "3.11.0" -
irmin-pack
< "3.11.0" -
irmin-server
< "3.11.0" -
irmin-test
< "3.11.0" -
irmin-tezos
< "3.11.0" - irmin-unix
-
js_of_ocaml-compiler
< "4.1.0" - jsonxt
-
kafka
< "0.5" - kafka_lwt
- kaun-board
- kinetic-client
-
lab
< "0.1.4" -
lambdapi
< "2.2.0" -
learn-ocaml
< "0.14.1" -
learn-ocaml-client
< "0.14.1" - lilac
- llopt
-
mastodon-archive-viewer
< "0.4.0" -
mdx
< "2.2.0" -
merge-fmt
< "0.3" - mfetch
-
minicaml
>= "0.2.2" -
mirage
= "4.0.0" -
mirage-monitoring
< "0.0.8" -
mirage-runtime
= "4.0.0" - mirage-seal
-
mkaudio
< "1.1.3" - mlgpx
-
mnet-cli
< "0.0.2" -
mnet-dns
>= "0.0.5" -
mnet-happy-eyeballs
>= "0.0.5" - monorobot
-
mrmime
= "0.5.0" -
mustache
= "3.2.0" - named-pipe
-
nbd
< "4.0.3" - nocoiner
-
nuscr
= "2.0.0" -
obandit
>= "0.3.4" -
obuilder
< "0.4" - ocal
- ocaml-sbom
- ocamlcodoc
-
ocamlformat
< "0.21.0" -
ocamlformat-mlx-lib
< "0.27.0" -
ocamlformat-rpc
< "removed" -
ocgtk
< "0.1~preview2" -
ocp-browser
>= "1.2.1" & < "1.3.4" - ocp-build
-
ocp-indent
< "1.9.0" - ocp-indent-nlfork
-
ocp-index
< "1.3.4" - ocp-reloc
-
ocsigen-toolkit
>= "4.3.0" -
odds
< "1.1" -
odoc
< "3.1.0" - ometrics
-
omigrate
< "0.3.0" -
opam-0install
< "0.4.3" -
opam-0install-cudf
< "0.4.1" -
opam-build
< "0.2.3" - opam-bundle
- opam-ci
-
opam-client
< "2.2.0" -
opam-compiler
< "0.2.0" -
opam-depext
>= "1.2.1" -
opam-devel
< "2.2.0" -
opam-ed
< "0.5" -
opam-grep
>= "0.2.0" & < "0.4.0" -
opam-installer
< "2.5.0~beta1" - opam-lib
- opam-lock
- opam-package-upgrade
-
opam-publish
>= "0.3.5" & < "2.2.0" -
opam-test
< "0.2.3" - opium
-
ordma
>= "0.0.5" - orun
- osbx
- oskel
- osx-fsevents
-
owee
>= "0.8" -
owi
>= "0.2" - owork
-
passage
>= "0.1.8" & < "0.3.2" - passmakercmd
-
pds
>= "4.13" & < "5.42" -
pecu
< "0.4" -
pg_query
>= "0.9.6" & < "0.9.8" - pkcs11-cli
- plotkicadsch
-
polly
< "0.4.1" - ppx_deriving_cmdliner
-
prelude
< "0.5" - prof_spacetime
- prometheus-app
-
protocol-9p
< "0.12.1" -
protocol-9p-tool
< "2.1.0" -
protocol-9p-unix
< "0.12.1" -
pyast
< "0.2.0" -
pyml_bindgen
< "0.3.0" -
pyre-ast
< "0.1.9" -
qcow
< "0.12.1" -
qcow-tool
< "0.12.1" -
qmp
< "0.20.0" - quill
-
rosetta
< "0.3.0" -
runtime_events_tools
< "0.3" - sid
- slack
- slacko
-
slipshow
< "0.1.1" - spin
- sslconf
- tallgeese
- telltime
- tensorflow
- tidy_email_mailgun
- tidy_email_sendgrid
- tidy_email_smtp
- timmy
- tldr
-
torch
< "v0.16.0" - touist
- tw
- unic
-
uring
< "0.3" - user-setup
-
uuuu
< "0.2.0" - valentine
-
vchan
< "6.0.2" - vecosek
-
wayland
< "1.1" -
webauthn
< "0.2.0" - xapi-inventory
- xen-evtchn
- xen-evtchn-unix
- xen-gnt
-
yuscii
< "0.3.0" - zeit
Conflicts
None
Build status
Results of building cmdliner with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
This version is not in the latest run; the versions below are.
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure