package cmdliner

  1. Overview
  2. Docs
Declarative definition of command line interfaces for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

cmdliner-0.9.6.tbz
md5=9c2490a6d1def1e6a8bb264f235682cb

Description

Cmdliner is a module for the declarative definition of command line interfaces.

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 is made of a single independent module and distributed under the BSD3 license.

README

Cmdliner — Declarative definition of command line interfaces for OCaml

Release 0.9.6

Cmdliner is a module for the declarative definition of command line interfaces.

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 is made of a single independent module and distributed under the BSD3 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 ocamldoc from the interfaces. It can be consulted online and there is a generated version in the doc directory of the distribution.

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 with:

ocamlbuild -use-ocamlfind test/tests.otarget

The resulting binaries are in _build/test.

Dependencies (3)

  1. ocamlbuild build
  2. ocamlfind
  3. ocaml >= "4.00.0" & < "4.06.0"

Dev Dependencies

None

  1. acgtk >= "1.5.1" & < "1.5.3"
  2. alcotest < "1.0.0"
  3. alcotest-async >= "1.3.0" & < "1.6.0"
  4. alcotest-lwt >= "1.3.0" & < "1.6.0"
  5. alcotest-mirage >= "1.3.0" & < "1.6.0"
  6. alt-ergo = "2.4.0"
  7. altgr-ergo = "2.4.0"
  8. aperf
  9. awa < "0.1.1"
  10. aws-s3 >= "3.0.0" & < "4.6.0"
  11. aws-s3-async < "3.0.0"
  12. bap < "1.0.0"
  13. bap-abi < "2.2.0"
  14. bap-api < "2.2.0"
  15. bap-beagle < "2.3.0"
  16. bap-bil < "2.2.0"
  17. bap-byteweight-frontend
  18. bap-cache < "2.2.0"
  19. bap-callsites
  20. bap-demangle < "2.5.0"
  21. bap-dump-symbols < "2.2.0"
  22. bap-frames < "2.1.1"
  23. bap-frontend < "2.2.0"
  24. bap-fsi-benchmark
  25. bap-ida-plugin < "2.2.0"
  26. bap-llvm < "2.2.0"
  27. bap-main != "2.4.0"
  28. bap-mc < "2.0.0"
  29. bap-objdump < "2.2.0"
  30. bap-optimization < "2.2.0"
  31. bap-phoenix
  32. bap-piqi
  33. bap-plugins < "2.2.0"
  34. bap-std < "1.4.0"
  35. bap-symbol-reader < "2.2.0"
  36. bap-taint < "1.4.0"
  37. bap-taint-propagator
  38. bap-term-mapper < "2.2.0"
  39. bap-trace
  40. bap-veri
  41. bap-warn-unused
  42. bap-x86 < "2.2.0"
  43. batsh >= "0.0.4"
  44. benchpress
  45. benchpress-server
  46. boltzgen < "0.9.3"
  47. brozip
  48. bt
  49. builder < "0.3.1"
  50. builder-web
  51. bytepdf
  52. ca-certs-nss < "3.77"
  53. camels
  54. capnp-rpc-unix < "1.2.3"
  55. caqti = "1.7.0"
  56. caqti-async = "1.7.0"
  57. caqti-lwt = "1.7.0"
  58. certify < "0.2"
  59. charrua-unix
  60. checkseum >= "0.0.2" & < "0.2.0"
  61. cmdtui-lambda-term
  62. coclobas
  63. cohttp >= "0.13.0" & < "0.99.0"
  64. cohttp-lwt-unix != "4.1.2" & < "5.2.0"
  65. cohttp-lwt-unix-nossl
  66. cohttp-lwt-unix-ssl
  67. coin < "0.1.2"
  68. conex
  69. conex-mirage-crypto
  70. conex-nocrypto
  71. confero
  72. coq-serapi < "8.7.1+0.4.8"
  73. craml
  74. crunch < "3.3.0"
  75. current < "0.6"
  76. current_examples < "0.6"
  77. current_web < "0.6"
  78. datakit
  79. datakit-bridge-github
  80. datakit-bridge-local-git
  81. datakit-ci
  82. datakit-client < "0.11.0"
  83. datakit-client-9p
  84. datakit-github
  85. datakit-server >= "0.10.0" & < "0.11.0"
  86. decompress >= "0.8" & < "1.0.0"
  87. depext < "1.0.2"
  88. depgraph
  89. dirsift
  90. dkim < "0.4.0"
  91. dns >= "0.6.0" & < "0.19.1"
  92. dns-forward < "0.9.0"
  93. dns-lwt-unix
  94. dockerfile >= "1.1.0" & < "3.0.0"
  95. dockerfile-cmd
  96. dockerfile-opam < "8.1.0"
  97. dog
  98. dolmen_bin < "0.7"
  99. dream-cli < "0.2.0"
  100. dscheck >= "0.2.0"
  101. dune-deps >= "1.1.0" & < "1.3.0"
  102. dune-release < "1.6.1"
  103. earlybird < "1.0.0"
  104. elasticsearch-cli >= "1.0"
  105. electrod >= "0.2.1"
  106. electrumAnalyzer
  107. elpi >= "1.3.1"
  108. equinoxe < "0.2.0"
  109. erlang
  110. ezxenstore < "0.4.3"
  111. facteur
  112. fat-filesystem < "0.15.1"
  113. frenetic >= "3.2.0" & < "5.0.0"
  114. fsevents-lwt
  115. git < "1.10.0" | >= "3.0.0" & != "3.7.1" & < "3.8.1"
  116. git-unix >= "1.10.0" & < "3.0.0"
  117. github >= "0.4.0" & < "1.1.0"
  118. gobba
  119. happy-eyeballs-lwt < "0.2.0"
  120. hlarp
  121. hll >= "2.7"
  122. http-lwt-client < "0.0.6"
  123. hvsock < "3.0.1"
  124. hxd < "0.3.2"
  125. igvxml
  126. index >= "1.3.0"
  127. index-bench < "1.3.2" | >= "1.4.2"
  128. irmin < "1.0.0"
  129. irmin-bench
  130. irmin-cli
  131. irmin-pack >= "2.3.0"
  132. irmin-test >= "2.3.0"
  133. irmin-tezos
  134. irmin-unix = "1.0.0" | >= "2.3.0"
  135. jitsu
  136. js_of_ocaml >= "2.5" & < "3.0"
  137. js_of_ocaml-compiler < "4.0.0"
  138. jsonxt
  139. kafka >= "0.3" & < "0.5"
  140. kafka_lwt
  141. ketrew < "3.1.0"
  142. kinetic-client >= "0.0.9"
  143. labrys
  144. learn-ocaml < "0.14.1"
  145. learn-ocaml-client < "0.14.1"
  146. letsencrypt < "0.3.0"
  147. letsencrypt-app < "0.5.0"
  148. llopt
  149. mastodon-archive-viewer < "0.4.0"
  150. mbr-format < "1.0.0"
  151. merge-fmt < "0.3"
  152. message-switch
  153. minicaml >= "0.2.2"
  154. mirage >= "0.10.0" & < "2.7.0" | >= "4.0.0" & < "4.4.0"
  155. mirage-block-xen < "2.0.0"
  156. mirage-console >= "2.1.2" & < "2.2.0"
  157. mirage-console-xen-cli
  158. mirage-dns >= "2.6.0" & < "3.0.0"
  159. mirage-seal
  160. mirari
  161. mirror
  162. mkaudio < "1.1.3"
  163. mrmime = "0.5.0"
  164. named-pipe
  165. nbd >= "0.9.2" & < "4.0.3"
  166. obandit >= "0.3.4"
  167. obuilder < "0.4"
  168. ocal
  169. ocaml-gist
  170. ocamlcodoc
  171. ocamlformat < "0.21.0"
  172. ocamlformat-rpc < "0.21.0"
  173. oci
  174. ocp-browser >= "1.1.6" & < "1.3.4"
  175. ocp-indent >= "1.2.0" & != "1.5.2" & < "1.6.0"
  176. ocp-index < "1.3.4"
  177. ocp-reloc
  178. odds < "1.1"
  179. odig < "0.0.2"
  180. odoc < "1.3.0"
  181. omigrate < "0.3.0"
  182. opam-0install < "0.4.3"
  183. opam-0install-cudf < "0.4.1"
  184. opam-build-revdeps
  185. opam-bundle < "0.4"
  186. opam-ci
  187. opam-compiler < "0.2.0"
  188. opam-ed < "0.3"
  189. opam-lib
  190. opam-package-upgrade
  191. opam-publish != "0.3.0+transition" & < "2.1.0"
  192. opam-query
  193. opam2web >= "1.3.0" & < "2.0"
  194. opass >= "2.15"
  195. operf-macro
  196. opium >= "0.12.0"
  197. ordma >= "0.0.5"
  198. osbx
  199. oskel
  200. osx-fsevents
  201. owi >= "0.2"
  202. passmakercmd
  203. pds >= "4.13"
  204. pkcs11-cli < "1.0.1"
  205. plotkicadsch >= "0.2.0"
  206. polly < "0.4.1"
  207. ppx_deriving_cmdliner < "0.3.1"
  208. prof_spacetime
  209. prometheus-app >= "0.4"
  210. protocol-9p < "0.12.1"
  211. protocol-9p-tool
  212. protocol-9p-unix < "0.12.1"
  213. publish < "0.3.4+transition"
  214. qcow < "0.10.2" | >= "0.11.0"
  215. qcow-format
  216. qcow-tool
  217. qmp < "0.20.0"
  218. regenerate < "0.2"
  219. rosetta < "0.3.0"
  220. rotor
  221. rpc >= "1.9.51" & < "5.9.0"
  222. rpclib >= "6.1.0" & < "8.1.1"
  223. satyrographos < "0.0.1.7"
  224. shared-block-ring < "3.0.1"
  225. sibylfs
  226. sid
  227. slack
  228. slack-backup
  229. slacko
  230. snabela
  231. solo5-elftool < "0.3.1"
  232. spin
  233. spotify-cli
  234. sslconf
  235. tallgeese
  236. tar-format >= "0.2.0" & < "0.7.1"
  237. telltime
  238. tensorflow >= "0.0.4"
  239. tezos-context-hash-irmin
  240. tezos-node >= "8.0" & < "13.0"
  241. timmy
  242. tldr >= "0.3.0"
  243. tlstunnel
  244. topkg-care < "0.9.0"
  245. torch < "v0.16.0"
  246. travis-senv
  247. tuntap >= "1.0.0" & != "1.4.1" & < "2.0.1"
  248. u2f
  249. uring < "0.3"
  250. usbmux < "1.3.2"
  251. user-setup >= "0.4"
  252. uuuu < "0.2.0"
  253. valentine
  254. vchan < "6.0.2"
  255. vchan-unix < "6.0.2"
  256. vchan-xen < "6.0.2"
  257. vecosek
  258. vhd-tool
  259. vimebac
  260. vpnkit
  261. webauthn
  262. xapi-idl
  263. xapi-inventory
  264. xapi-rrd-transport
  265. xe-unikernel-upload
  266. xen-block-driver
  267. xen-disk
  268. xen-evtchn
  269. xen-evtchn-unix
  270. xen-gnt >= "1.0.0"
  271. xenctrl
  272. xentropyd
  273. yuscii < "0.3.0"

Conflicts

None