package cmdliner

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cmdliner-1.0.4.tbz
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 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)

  1. ocaml >= "4.03.0"

Dev Dependencies

None

  1. acgtk < "2.1.0"
  2. albatross < "1.4.3"
  3. alcotest < "1.7.0"
  4. alcotest-async < "1.7.0"
  5. alt-ergo >= "2.4.0" & < "2.4.2"
  6. altgr-ergo >= "2.4.0" & < "2.4.2"
  7. apero-core
  8. apero-net
  9. archsat
  10. asak >= "0.2" & < "0.4"
  11. awa < "0.2.0"
  12. aws-s3 < "4.6.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
  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
  28. bap-objdump < "2.2.0"
  29. bap-optimization < "2.2.0"
  30. bap-phoenix
  31. bap-piqi
  32. bap-plugins < "2.2.0"
  33. bap-powerpc >= "2.2.0"
  34. bap-std
  35. bap-symbol-reader < "2.2.0"
  36. bap-taint-propagator
  37. bap-term-mapper < "2.2.0"
  38. bap-trace
  39. bap-veri
  40. bap-warn-unused
  41. bap-x86
  42. benchpress
  43. benchpress-server
  44. bentov
  45. bisect_ppx >= "2.0.0"
  46. boltzgen < "0.9.5"
  47. brozip
  48. builder < "0.3.2"
  49. builder-web < "0.2.0"
  50. bun
  51. bytepdf
  52. ca-certs-nss < "3.77"
  53. camels
  54. camyll < "0.4.1"
  55. capnp-rpc-unix < "1.2.3"
  56. caqti = "1.7.0"
  57. caqti-async = "1.7.0"
  58. caqti-lwt = "1.7.0"
  59. carton < "0.7.2"
  60. catala < "0.7.0"
  61. catala-format >= "0.2.0"
  62. cca >= "0.6.2"
  63. certify
  64. charrua-unix < "1.6.0"
  65. checkseum >= "0.0.2" & < "0.2.0"
  66. clim
  67. clim-ppx
  68. cmdliner-stdlib
  69. cmdtui-lambda-term
  70. cohttp-lwt-unix != "4.1.2" & < "5.3.0"
  71. coin < "0.1.2"
  72. conex < "1.0.0"
  73. conex-mirage-crypto < "1.0.0"
  74. confero
  75. coq-serapi < "8.15.0+0.15.2"
  76. cosovo
  77. cppffigen
  78. craml
  79. crowbar < "0.2.1"
  80. crunch < "4.0.0"
  81. current < "0.6.2"
  82. current_examples < "0.6.2"
  83. current_github < "0.6.2"
  84. current_web < "0.6.2"
  85. decompress < "1.0.0" | >= "1.3.0" & < "1.4.3"
  86. depgraph
  87. diffast-git-cli < "0.3.5.1"
  88. dirsift
  89. diskuvbox < "0.2.0"
  90. dkml-component-staging-opam32 < "2.2.0~dkml20220801"
  91. dkml-component-staging-opam64 < "2.2.0~dkml20220801"
  92. dkml-install < "0.4.0"
  93. dkml-install-installer < "0.4.0"
  94. dkml-install-runner < "0.4.0"
  95. dockerfile-cmd
  96. dockerfile-opam < "8.2.7"
  97. docteur < "0.0.4"
  98. dolmen_bin < "0.7"
  99. dream-cli < "0.2.0"
  100. dryunit
  101. dscheck >= "0.2.0"
  102. duff < "0.3"
  103. dune-deps >= "1.1.0" & < "1.4.0"
  104. dune-expand
  105. dune-release < "1.6.1"
  106. dune_deps_extra
  107. earlybird < "1.2.0"
  108. elasticsearch-cli
  109. electrod
  110. electrumAnalyzer
  111. elpi
  112. equinoxe < "0.2.0"
  113. erlang
  114. ez_cmdliner < "0.4.3"
  115. facteur
  116. fat-filesystem < "0.15.1"
  117. fit < "1.0.3"
  118. fsevents-lwt
  119. functoria-runtime < "4.0.0"
  120. git >= "3.2.0" & < "3.15.0"
  121. git-unix < "3.15.0"
  122. github-unix < "4.5.0"
  123. gobba
  124. gospel < "0.2.0"
  125. happy-eyeballs-lwt < "0.6.0"
  126. hlarp
  127. hll < "4.3"
  128. http-lwt-client < "0.0.8"
  129. hvsock < "3.0.1"
  130. hxd < "0.3.2"
  131. igvxml
  132. index >= "1.3.0"
  133. index-bench
  134. irmin-bench < "3.11.0"
  135. irmin-cli < "3.11.0"
  136. irmin-pack < "3.11.0"
  137. irmin-server < "3.11.0"
  138. irmin-test < "3.11.0"
  139. irmin-tezos < "3.11.0"
  140. irmin-unix
  141. js_of_ocaml-compiler < "4.1.0"
  142. jsonxt
  143. kafka < "0.5"
  144. kafka_lwt
  145. kinetic-client >= "0.0.9"
  146. lab < "0.1.4"
  147. labrys
  148. lambdapi < "2.2.0"
  149. learn-ocaml < "0.14.1"
  150. learn-ocaml-client < "0.14.1"
  151. lilac
  152. llopt
  153. mastodon-archive-viewer < "0.4.0"
  154. mdx < "2.2.0"
  155. merge-fmt < "0.3"
  156. minicaml >= "0.2.2"
  157. mirage = "4.0.0"
  158. mirage-monitoring < "0.0.8"
  159. mirage-runtime = "4.0.0"
  160. mirage-seal
  161. mkaudio < "1.1.3"
  162. mlgpx
  163. monorobot
  164. mrmime = "0.5.0"
  165. mustache = "3.2.0"
  166. named-pipe
  167. nbd < "4.0.3"
  168. nocoiner
  169. nuscr = "2.0.0"
  170. obandit >= "0.3.4"
  171. obuilder < "0.4"
  172. ocal
  173. ocamlcodoc
  174. ocamlformat < "0.21.0"
  175. ocamlformat-mlx-lib < "0.27.0"
  176. ocamlformat-rpc < "0.21.0"
  177. ocp-browser >= "1.1.7" & < "1.3.4"
  178. ocp-build
  179. ocp-indent < "1.9.0"
  180. ocp-indent-nlfork
  181. ocp-index < "1.3.4"
  182. ocp-reloc
  183. odds < "1.1"
  184. odoc < "3.1.0"
  185. ometrics
  186. omigrate < "0.3.0"
  187. opam-0install < "0.4.3"
  188. opam-0install-cudf < "0.4.1"
  189. opam-build < "0.2.3"
  190. opam-bundle
  191. opam-ci
  192. opam-client < "2.2.0"
  193. opam-compiler < "0.2.0"
  194. opam-depext >= "1.2.1"
  195. opam-devel < "2.2.0"
  196. opam-dune-lint < "0.3"
  197. opam-ed
  198. opam-grep >= "0.2.0" & < "0.4.0"
  199. opam-installer < "2.5.0~beta1"
  200. opam-lib
  201. opam-lock
  202. opam-package-upgrade
  203. opam-publish >= "0.3.5" & < "2.2.0"
  204. opam-test < "0.2.3"
  205. opium
  206. ordma >= "0.0.5"
  207. orun
  208. osbx
  209. oskel
  210. osx-fsevents
  211. owee >= "0.8"
  212. owi >= "0.2"
  213. owork
  214. passage >= "0.1.8"
  215. passmakercmd
  216. pds >= "4.13" & < "5.42"
  217. pecu < "0.4"
  218. pg_query >= "0.9.6" & < "0.9.8"
  219. pkcs11-cli
  220. plotkicadsch
  221. polly < "0.4.1"
  222. ppx_deriving_cmdliner
  223. prelude < "0.5"
  224. prof_spacetime
  225. prometheus-app
  226. protocol-9p < "0.12.1"
  227. protocol-9p-tool < "2.1.0"
  228. protocol-9p-unix < "0.12.1"
  229. pyast < "0.2.0"
  230. pyml_bindgen < "0.3.0"
  231. pyre-ast < "0.1.9"
  232. qcow < "0.10.2" | = "0.11.0"
  233. qcow-tool < "0.12.1"
  234. qmp < "0.20.0"
  235. quill
  236. regenerate
  237. rosetta < "0.3.0"
  238. rotor
  239. runtime_events_tools < "0.3"
  240. sid
  241. slack
  242. slacko
  243. slipshow < "0.1.1"
  244. spin
  245. sslconf
  246. tallgeese
  247. telltime
  248. tensorflow
  249. tezos-context-hash-irmin
  250. tidy_email_mailgun
  251. tidy_email_sendgrid
  252. tidy_email_smtp
  253. timmy
  254. tldr >= "0.3.0"
  255. torch < "v0.16.0"
  256. touist
  257. uring < "0.3"
  258. user-setup
  259. uuuu < "0.2.0"
  260. valentine
  261. vchan < "6.0.2"
  262. vecosek
  263. vpnkit
  264. wayland < "1.1"
  265. webauthn < "0.2.0"
  266. xapi-inventory
  267. xen-evtchn
  268. xen-evtchn-unix
  269. xen-gnt
  270. yuscii < "0.3.0"
  271. zeit

Conflicts

None