package cmdliner

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cmdliner-2.1.1.tbz
sha512=cdc338ae2e56a72b7c75dae9564c57cca4e1fbfac454aabbf8303fcb612346284aede5984dfde7e8a7a496cc870bbd57ddf28cab3a38667279b31657f85c15dd

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 command line completion, 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.

Homepage: http://erratique.ch/software/cmdliner

README

Cmdliner — Declarative definition of command line interfaces for OCaml

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 command line completion, 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.

Homepage: 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 can be consulted online or via odig doc cmdliner.

Questions are welcome but better asked on the OCaml forum than on the issue tracker.

Sample programs

A few examples and blueprints can be found in the documentation and in the test directory.

Dependencies (1)

  1. ocaml >= "4.08.0"

Dev Dependencies

None

  1. abella >= "2.0.8"
  2. acgtk >= "2.1.0"
  3. albatross >= "1.4.3"
  4. alcobar
  5. alcotest >= "1.9.1"
  6. alcotest-async
  7. alcotest-js
  8. alcotest-lwt
  9. alcotest-mirage
  10. alt-ergo >= "2.6.3"
  11. altgr-ergo >= "2.4.2"
  12. api-watch
  13. arc >= "0.0.2"
  14. areas-and-adversaries
  15. asak >= "0.2"
  16. atd >= "2.13.0"
  17. atdcpp
  18. atdd
  19. atdml
  20. atdpy
  21. atdts
  22. awa >= "0.2.0"
  23. aws-s3
  24. b0
  25. bancos
  26. bap-abi < "2.2.0"
  27. bap-api < "2.2.0"
  28. bap-beagle < "2.3.0"
  29. bap-bil < "2.2.0"
  30. bap-byteweight-frontend
  31. bap-cache < "2.2.0"
  32. bap-callsites
  33. bap-demangle < "2.5.0"
  34. bap-dump-symbols < "2.2.0"
  35. bap-frames
  36. bap-frontend < "2.2.0"
  37. bap-fsi-benchmark
  38. bap-ida-plugin < "2.2.0"
  39. bap-llvm < "2.2.0"
  40. bap-main < "2.2.0"
  41. bap-objdump < "2.2.0"
  42. bap-optimization < "2.2.0"
  43. bap-phoenix
  44. bap-piqi
  45. bap-plugins < "2.2.0"
  46. bap-std
  47. bap-symbol-reader < "2.2.0"
  48. bap-taint-propagator
  49. bap-term-mapper < "2.2.0"
  50. bap-trace
  51. bap-veri
  52. bap-warn-unused
  53. bap-x86 < "2.2.0"
  54. benchpress-server
  55. bibfmt
  56. boltzgen >= "0.9.5"
  57. boulangerie
  58. brozip
  59. builder
  60. builder-web >= "0.2.0"
  61. ca-certs-nss >= "3.77"
  62. caisar >= "0.2"
  63. camels >= "1.0.0"
  64. camyll >= "0.4.1"
  65. capnp-rpc-unix >= "2.1.1"
  66. caqti >= "1.8.0"
  67. caqti-async >= "1.8.0"
  68. caqti-driver-mariadb >= "1.8.0"
  69. caqti-driver-postgresql >= "1.8.0"
  70. caqti-driver-sqlite3 >= "1.8.0"
  71. caqti-dynload = "2.0.1"
  72. caqti-eio
  73. caqti-lwt >= "1.8.0"
  74. caqti-miou
  75. carton = "0.7.2"
  76. carton-miou
  77. carton-miou-unix
  78. catala >= "0.7.0"
  79. catala-format >= "0.2.0"
  80. chamelon-unix
  81. charrua-unix >= "1.6.0"
  82. checkseum = "0.0.2" | >= "0.0.9" & < "0.2.0"
  83. ciao_lwt >= "0.2"
  84. clim-ppx
  85. cmdlang-cmdliner-err-runner
  86. cmdlang-to-cmdliner
  87. cmdliner-stdlib
  88. cmdtui-lambda-term
  89. cohttp-curl-lwt >= "6.2.1"
  90. cohttp-lwt-unix >= "6.0.0~beta2"
  91. commons >= "1.8.0"
  92. compsort
  93. conex >= "1.0.0"
  94. conex-mirage-crypto
  95. confero
  96. coq-lsp
  97. coq-serapi >= "8.9.0+0.6.0" & < "8.13.0+0.13.0" | >= "8.15.0+0.15.2"
  98. crockford
  99. crowbar >= "0.2.1"
  100. crunch >= "4.0.0"
  101. cucumber
  102. current
  103. current-albatross-deployer
  104. current_examples
  105. current_github
  106. current_gitlab
  107. current_web
  108. decompress >= "1.4.3"
  109. dedukti >= "2.7"
  110. diffast-git-cli >= "0.3.5.1"
  111. diskuvbox >= "0.2.0"
  112. dkim
  113. dkim-bin
  114. dkml-install-installer
  115. dns-cli >= "10.1.0"
  116. dockerfile-cmd
  117. dockerfile-opam < "8.2.7"
  118. docteur >= "0.0.4"
  119. doi2bib >= "0.7.6"
  120. dream-cli >= "0.2.0"
  121. dscheck >= "0.2.0"
  122. dune-deps >= "1.4.0"
  123. dune-release >= "2.2.0"
  124. dune_deps_extra
  125. earlybird
  126. eio-trace
  127. eio_linux >= "0.3"
  128. extism
  129. ez_cmdliner >= "0.5.0"
  130. facteur
  131. fat-filesystem < "0.13.0" | >= "0.15.1"
  132. fit >= "1.0.3"
  133. forester >= "5.0"
  134. functoria-runtime >= "4.0.0"
  135. git >= "3.2.0"
  136. git-unix >= "3.15.0"
  137. github-unix >= "4.5.0"
  138. gitlab-unix >= "0.1.3"
  139. gospel >= "0.3.1"
  140. happy-eyeballs-lwt >= "0.6.0"
  141. happy-eyeballs-miou-unix
  142. hlarp < "0.0.3"
  143. http-lwt-client >= "0.3.2"
  144. hvsock >= "3.0.1"
  145. hxd >= "0.3.5"
  146. index-bench >= "1.6.1"
  147. irmin-bench
  148. irmin-cli
  149. irmin-pack != "2.10.2"
  150. irmin-pack-tools
  151. irmin-server
  152. irmin-test >= "3.11.0"
  153. irmin-tezos
  154. irmin-unix
  155. jasmin >= "2023.06.0"
  156. js_of_ocaml-compiler >= "4.1.0"
  157. jsonschema2atd
  158. kaun-board
  159. ke >= "0.5"
  160. kmt
  161. lab >= "0.1.4"
  162. labrys
  163. learn-ocaml
  164. learn-ocaml-client
  165. ledes
  166. letsencrypt-app
  167. MlFront_Cli < "2.3.1"
  168. MlFront_Logs
  169. MlFront_Tools
  170. markdown_monolith
  171. mastodon-archive-viewer >= "0.2"
  172. mcrunch
  173. mdx >= "2.5.1"
  174. mel
  175. melange
  176. meldep
  177. merge-fmt >= "0.3"
  178. mirage >= "4.10.2"
  179. mirage-block-ccm
  180. mirage-logs
  181. mirage-monitoring >= "0.0.8"
  182. mirage-runtime >= "4.9.0"
  183. mirage-seal
  184. mkaudio >= "1.1.4"
  185. mlgpx
  186. mnet-cli
  187. mrmime >= "0.6.0"
  188. named-pipe
  189. nbd < "4.0.3"
  190. niru
  191. nuscr >= "2.1.0"
  192. obuilder >= "0.4"
  193. ocamlformat >= "0.25.1"
  194. ocamlformat-lib >= "0.28.1"
  195. ocamlformat-mlx
  196. ocamlformat-mlx-lib >= "0.28.1.1"
  197. ocamlmig
  198. ocgtk
  199. ochre-cli
  200. ocluster >= "0.2"
  201. ocp-browser >= "1.1.7"
  202. ocp-indent >= "1.9.0"
  203. ocp-indent-nlfork
  204. ocp-index >= "1.4.0"
  205. odds >= "1.1"
  206. odep
  207. odig >= "0.1.0"
  208. odoc >= "3.1.0"
  209. odoc-driver
  210. odoc-md >= "3.1.0"
  211. olint
  212. omigrate >= "0.3.0"
  213. omod
  214. opam-0install-cudf < "0.4.1"
  215. opam-build
  216. opam-bundle
  217. opam-dune-lint
  218. opam-graph
  219. opam-grep >= "0.4.0"
  220. opam-package-upgrade
  221. opam-publish >= "3.0.0"
  222. opam-repomin
  223. opam-test
  224. opine
  225. oq
  226. orb
  227. ordma >= "0.0.5"
  228. ortac-core
  229. ortac-dune
  230. ortac-qcheck-stm
  231. ortac-wrapper
  232. osx-fsevents
  233. oui
  234. owee >= "0.8"
  235. owi >= "0.2"
  236. passage < "0.1.8" | >= "0.3.2"
  237. pds >= "5.42"
  238. pg_query >= "0.9.8"
  239. pkcs11-cli
  240. plotkicadsch < "0.9.0"
  241. polly >= "0.4.1"
  242. pplumbing < "0.0.16"
  243. ppx_deriving_cmdliner < "0.6.0"
  244. ppx_subliner
  245. ppxlib-tools
  246. prelude < "0.5"
  247. prof_spacetime
  248. prometheus-app
  249. protocol-9p < "0.12.1"
  250. protocol-9p-tool < "0.12.0" | >= "2.1.0"
  251. protocol-9p-unix < "0.12.1"
  252. pyast >= "0.2.0"
  253. pyml_bindgen >= "0.4.1"
  254. pyre-ast >= "0.1.9"
  255. qcow < "0.10.2" | = "0.11.0"
  256. qcow-tool < "0.11.0"
  257. qmp >= "0.20.0"
  258. queenshead
  259. query-json
  260. quickterface
  261. quill
  262. randii
  263. reason >= "3.17.0"
  264. rosetta < "0.2.0"
  265. rpclib
  266. runtime_events_tools >= "0.5.4"
  267. runtime_events_tools_bare >= "0.5.4"
  268. rust-staticlib-gen
  269. salto-analyzer
  270. scfg >= "0.4"
  271. shakuhachi
  272. shared-block-ring
  273. sherlodoc < "3.1.0"
  274. slack
  275. slipshow
  276. smtml >= "0.7.0"
  277. solo5-elftool
  278. spin = "0.6.0"
  279. starred_ml >= "0.0.4"
  280. sun
  281. tallgeese
  282. tcpip >= "8.0.0"
  283. tensorflow
  284. testo
  285. testo-lwt
  286. tidy_email_mailgun
  287. tidy_email_sendgrid
  288. tidy_email_smtp
  289. timmy
  290. tls = "0.15.4" | >= "1.0.4"
  291. tls-lwt
  292. toc
  293. topkg-care
  294. torch < "v0.16.0"
  295. tuntap
  296. uring
  297. uring-trace
  298. utcp
  299. vchan < "6.0.2"
  300. vchan-unix
  301. vendredi
  302. vif
  303. wasm_of_ocaml-compiler
  304. wayland >= "1.1"
  305. webauthn
  306. webbrowser >= "0.6.2"
  307. wol-eio
  308. xapi-inventory
  309. xdge
  310. xen-evtchn
  311. xen-evtchn-unix
  312. xen-gnt
  313. yuscii = "0.2.0"

Conflicts

None