package cmdliner
Build not checkedInstall
dune-project
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 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.08.0"
Dev Dependencies
None
-
abella
>= "2.0.8" -
acgtk
>= "2.1.0" -
albatross
>= "1.4.3" - alcobar
-
alcotest
!= "1.5.0" - alcotest-async
- alcotest-js
- alcotest-lwt
- alcotest-mirage
-
alt-ergo
>= "2.4.2" & < "2.6.3" -
alt-ergo-free
>= "2.4.3" -
altgr-ergo
>= "2.4.2" - api-watch
-
arc
>= "0.0.2" - areas-and-adversaries
- asak
-
atd
>= "2.13.0" - atdcpp
- atdd
- atdml
- atdpy
- atdts
- awa
- aws-s3
-
b0
< "0.0.6" - bancos
-
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
- bibfmt
-
bisect_ppx
>= "2.0.0" - bisect_ppx_ng
- boltzgen
- boulangerie
- builder
-
builder-web
>= "0.2.0" - bytepdf
- ca-certs-nss
- caisar
-
camels
< "1.0.0" - 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" - caqti-miou
-
carton
>= "0.4.3" & < "1.0.0" - carton-miou
- carton-miou-unix
-
cascade
< "1.2.0" -
catala
>= "0.7.0" & < "1.2.0" -
catala-format
>= "0.2.0" & < "1.2.0" -
cca
>= "0.6.2" -
certify
>= "0.3.0" - chamelon-unix
- charrua-unix
-
checkseum
>= "0.0.2" & < "0.2.0" - ciao_lwt
- clim-ppx
- cmdlang-cmdliner-err-runner
- cmdlang-to-cmdliner
- cmdliner-stdlib
- cmdtui-lambda-term
-
cohttp-lwt-unix
!= "2.5.8" & < "6.2.1" -
colibri2
< "0.6" -
colibrics
< "0.6" -
commons
>= "1.8.0" - compsort
- conex
- conex-mirage-crypto
- confero
- console
- console-eio
- coq-lsp
- coq-serapi
- cosovo
- cppffigen
- craml
- crockford
-
crowbar
>= "0.2.1" - crunch
- cucumber
- current
- current-albatross-deployer
- current_examples
- current_github
- current_gitlab
- current_web
-
decompress
< "1.0.0" | >= "1.3.0" -
dedukti
>= "2.7" - deepseek
- depgraph
-
diffast-git-cli
< "0.3.5.1" - dirsift
- diskuvbox
- dkim
- dkim-bin
- dkml-install
- dkml-install-installer
- dkml-install-runner
- dns-cli
-
docfd
< "13.0.0" - dockerfile-cmd
-
dockerfile-opam
< "8.2.7" -
docteur
>= "0.0.4" - doctor
- doi2bib
- dolmen_bin
- dream-cli
- dryunit
-
dscheck
>= "0.2.0" -
dune-deps
>= "1.1.0" - dune-expand
-
dune-release
>= "1.6.1" & < "2.2.0" - dune_deps_extra
- earlybird
- eio-trace
-
eio_linux
>= "0.3" - elasticsearch-cli
- electrod
-
elpi
< "3.7.3" - erlang
- expr
- extism
- facteur
- fat-filesystem
- fit
-
forester
>= "2.3" - fsevents-lwt
- functoria-runtime
-
git
>= "3.2.0" -
git-unix
>= "3.15.0" - github-unix
-
gitlab-unix
>= "0.1.3" - gobba
-
gospel
< "0.3.1" - happy-eyeballs-lwt
- happy-eyeballs-miou-unix
-
hegel
>= "0.26.6" - hlarp
- hll
- http-lwt-client
- hurl
-
hvsock
< "2.0.0" | >= "3.0.1" -
hxd
>= "0.3.2" - igvxml
-
index
>= "1.6.1" -
index-bench
>= "1.6.1" - irmin-bench
- irmin-cli
-
irmin-pack
!= "2.10.2" - irmin-pack-tools
- irmin-server
- irmin-test
- irmin-tezos
- irmin-unix
-
jasmin
>= "2023.06.0" -
js_of_ocaml-compiler
< "6.3.0" - jsonschema2atd
- jsonxt
-
kafka
< "0.5" - kafka_lwt
- kaun-board
-
ke
>= "0.5" - kinetic-client
- kmt
- lab
-
lambdapi
!= "2.1.0" - learn-ocaml
- learn-ocaml-client
- ledes
- letsencrypt-app
- lilac
- llopt
- locswijch
- lwt_ppx_to_let_syntax
-
MlFront_Cli
< "2.3.1" - MlFront_Logs
- MlFront_Tools
- mastodon-archive-viewer
-
mcrunch
< "0.0.4" -
mdx
>= "2.2.0" - mel
- melange
- meldep
- merge-fmt
- mfetch
-
minicaml
>= "0.2.2" & < "0.3.3" -
mirage
>= "4.7.0" & < "4.10.2" - mirage-block-ccm
- mirage-logs
-
mirage-monitoring
< "0.0.8" -
mirage-runtime
>= "4.0.0" - mirage-seal
- mkaudio
- mlgpx
-
mnet-cli
< "0.0.2" -
mnet-dns
>= "0.0.5" -
mnet-happy-eyeballs
>= "0.0.5" - monorobot
-
mrmime
>= "0.5.0" - mustache-cli
-
named-pipe
< "0.4.0" -
nbd
< "4.0.3" - nbd-tool
- niru
- nocoiner
-
nuscr
>= "2.0.0" -
obandit
>= "0.3.4" - obuilder
- ocal
- ocaml-sbom
- ocamlcodoc
-
ocamlformat
>= "0.22.4" - ocamlformat-lib
- ocamlformat-mlx
- ocamlformat-mlx-lib
-
ocamlgrep
< "0.1.3" - ocamlmig
-
ocgtk
< "0.1~preview2" - ochre-cli
-
ocluster
>= "0.2" -
ocp-browser
>= "1.2.1" -
ocp-indent
< "1.10.0" - ocp-indent-nlfork
- ocp-index
- ocp-reloc
-
ocsigen-toolkit
>= "4.3.0" - odds
- odep
-
odig
< "0.1.0" - odoc
- odoc-driver
-
odoc-md
>= "3.1.0" - olint
- ometrics
- omigrate
- omod
-
opam-0install
>= "0.4.1" & < "0.6.0" -
opam-0install-cudf
< "0.4.1" - opam-build
- opam-bundle
- opam-ci
-
opam-client
< "2.5.0~beta1" -
opam-compiler
>= "0.2.0" -
opam-depext
>= "1.2.1" -
opam-devel
< "2.5.0~beta1" - opam-dune-lint
- opam-ed
- opam-graph
-
opam-grep
>= "0.2.0" -
opam-installer
< "2.5.0~beta1" - opam-lib
- opam-lock
- opam-minver
- opam-package-upgrade
-
opam-publish
>= "0.3.5" & < "3.0.0" - opam-repomin
- opam-test
- opine
- opium
- orb
-
ordma
>= "0.0.5" - ortac-core
- ortac-dune
- ortac-qcheck-stm
- ortac-wrapper
- orun
- osbx
- osx-fsevents
- oui
-
owee
>= "0.8" -
owi
>= "0.2" - owork
-
passage
< "0.3.2" - passmakercmd
-
pds
>= "4.13" -
pg_query
>= "0.9.6" - pkcs11-cli
- plotkicadsch
- polly
-
pplumbing
< "0.0.16" - ppx_deriving_cmdliner
- ppx_subliner
- ppxlib-tools
-
prelude
< "0.5" - prof_spacetime
- prometheus-app
-
protocol-9p
< "0.12.1" - protocol-9p-tool
-
protocol-9p-unix
< "0.12.1" - pyast
-
pyml_bindgen
>= "0.4.1" - pyre-ast
-
qcow
< "0.12.1" - qcow-tool
- qmp
- queenshead
-
query-json
>= "0.6.1" - quill
- rake
- randii
-
reason
>= "3.17.0" -
rosetta
< "0.2.0" - rpclib
-
runtime_events_tools
< "0.5.4" -
runtime_events_tools_bare
< "0.5.4" - rust-staticlib-gen
- salto-analyzer
-
scfg
>= "0.4" - shakuhachi
- shared-block-ring
- sherlodoc
- sid
- slack
- slacko
- slipshow
- smtml
- solo5-elftool
- sosie
- spin
- sslconf
-
starred_ml
>= "0.0.4" - sun
- tallgeese
-
tcpip
>= "8.0.0" - telltime
- tensorflow
- testo
- testo-lwt
- tidy_email_mailgun
- tidy_email_sendgrid
- tidy_email_smtp
- timmy
- tldr
-
tls
= "0.15.4" | >= "1.0.4" - tls-lwt
- toc
- topkg-care
-
torch
< "v0.16.0" - touist
- transom
- tuntap
- tw
- unic
- uring
- uring-trace
- user-setup
- utcp
- valentine
-
vchan
< "6.0.2" - vchan-unix
- vecosek
- vendredi
- vif
-
wasm_of_ocaml-compiler
< "6.3.0" - wayland
- webauthn
-
webbrowser
>= "0.6.2" - wol-eio
- xapi-inventory
- xdge
- xen-evtchn
- xen-evtchn-unix
- xen-gnt
-
yuscii
= "0.2.0" - zeit
Conflicts
None
Build status
Results of building cmdliner with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. 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