package cmdliner

Build not yet checked
  1. Overview
  2. Docs
Declarative definition of command line interfaces for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cmdliner-2.1.2.tbz
sha512=6cc3c116d748d3f97f9a0b2f06ee645df9c09d2042b73d8f8114a5cb030ce99a2149acda6cc0886e0a3f7776152b50f49337fdf5603a387acb2b6a85b8c5bccf

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

Tags

cli system declarative org:erratique

Added to opam-repository:

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

Optional 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
  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-beagle < "2.3.0"
  27. bap-byteweight-frontend
  28. bap-callsites
  29. bap-demangle < "2.5.0"
  30. bap-fsi-benchmark
  31. bap-phoenix
  32. bap-piqi
  33. bap-std
  34. bap-taint-propagator
  35. bap-trace
  36. bap-warn-unused
  37. bcfg
  38. bibfmt
  39. bisect_ppx_ng
  40. boltzgen >= "0.9.5"
  41. boulangerie
  42. builder
  43. builder-web >= "0.2.0"
  44. ca-certs-nss >= "3.77"
  45. cabal_workflow_runner
  46. caisar >= "0.2" & < "6.0"
  47. camels >= "1.0.0"
  48. camyll >= "0.4.1"
  49. capnp-rpc-unix >= "2.1.1"
  50. caqti >= "1.8.0"
  51. caqti-async >= "1.8.0"
  52. caqti-driver-mariadb >= "1.8.0"
  53. caqti-driver-postgresql >= "1.8.0"
  54. caqti-driver-sqlite3 >= "1.8.0"
  55. caqti-dynload = "2.0.1"
  56. caqti-eio
  57. caqti-lwt >= "1.8.0"
  58. caqti-miou
  59. carton = "0.7.2"
  60. carton-miou
  61. carton-miou-unix
  62. cascade
  63. catala >= "0.7.0"
  64. catala-format >= "0.2.0"
  65. chamelon-unix
  66. charrua-unix >= "1.6.0"
  67. checkseum = "0.0.2" | >= "0.0.9" & < "0.2.0"
  68. ciao_lwt
  69. clim-ppx
  70. cmdlang-cmdliner-err-runner
  71. cmdlang-to-cmdliner
  72. cmdliner-stdlib
  73. cmdtui-lambda-term
  74. cohttp-curl-lwt >= "6.2.1"
  75. cohttp-lwt-unix >= "6.0.0~beta2" & < "6.2.2"
  76. cohttp-lwt-unix-bin
  77. colibri2 >= "0.6"
  78. colibrics >= "0.6"
  79. commons >= "1.8.0"
  80. compsort
  81. conex >= "1.0.0"
  82. conex-mirage-crypto
  83. confero
  84. console
  85. console-eio
  86. coq-lsp
  87. coq-serapi < "8.13.0+0.13.0" | >= "8.15.0+0.15.2"
  88. crockford
  89. crowbar >= "0.2.1"
  90. crunch >= "4.0.0"
  91. cucumber
  92. current
  93. current-albatross-deployer
  94. current_examples
  95. current_github
  96. current_gitlab
  97. current_web
  98. decompress >= "1.4.3"
  99. dedukti >= "2.7"
  100. deepseek
  101. diffast-git-cli >= "0.3.5.1"
  102. dkim
  103. dkim-bin
  104. dkml-install-installer
  105. dns-cli >= "10.1.0"
  106. docfd >= "13.0.0"
  107. dockerfile-cmd
  108. dockerfile-opam < "8.2.7"
  109. docteur >= "0.0.4"
  110. doctor
  111. doi2bib >= "0.7.6"
  112. dolmen_bin >= "0.11"
  113. dream-cli >= "0.2.0"
  114. dscheck >= "0.2.0"
  115. dune-deps >= "1.4.0"
  116. dune-release >= "2.2.0"
  117. dune_deps_extra
  118. earlybird != "1.1.0"
  119. eio-fs
  120. eio-trace
  121. eio_linux >= "0.3"
  122. elpi >= "3.7.3"
  123. extism
  124. ez_cmdliner >= "0.5.0"
  125. facteur
  126. fat-filesystem < "0.13.0" | >= "0.15.1"
  127. fit >= "1.0.3"
  128. forester >= "5.0"
  129. functoria-runtime >= "4.0.0"
  130. git >= "3.2.0"
  131. git-unix >= "3.15.0"
  132. github-unix >= "4.5.0"
  133. gitlab-unix >= "0.1.3"
  134. gospel >= "0.3.1"
  135. happy-eyeballs-lwt >= "0.6.0"
  136. happy-eyeballs-miou-unix
  137. hegel >= "0.26.6"
  138. hlarp < "0.0.3"
  139. http-lwt-client >= "0.3.2"
  140. hurl >= "0.0.1~beta2"
  141. hvsock >= "3.0.1"
  142. hxd >= "0.3.5"
  143. index >= "1.7.0"
  144. index-bench >= "1.6.1"
  145. irmin-bench
  146. irmin-cli
  147. irmin-pack != "2.10.2" & != "3.10.0"
  148. irmin-pack-tools
  149. irmin-server
  150. irmin-test >= "3.11.0"
  151. irmin-tezos
  152. irmin-unix
  153. jasmin >= "2023.06.0"
  154. js_of_ocaml-compiler >= "4.1.0"
  155. jsonschema2atd
  156. k7
  157. kaun-board
  158. ke >= "0.5"
  159. kmt
  160. lab >= "0.1.4"
  161. learn-ocaml
  162. learn-ocaml-client
  163. ledes
  164. letsencrypt-app
  165. locswijch
  166. MlFront_Cli < "2.3.1"
  167. MlFront_Logs
  168. MlFront_Tools
  169. markdown_monolith
  170. mastodon-archive-viewer >= "0.2"
  171. mcrunch
  172. mdx >= "2.5.1"
  173. mel
  174. melange
  175. meldep
  176. menhirformat
  177. merge-fmt >= "0.3"
  178. mfat
  179. mfetch
  180. miaou-serve
  181. migra
  182. mirage >= "4.10.2"
  183. mirage-block-ccm
  184. mirage-logs
  185. mirage-monitoring >= "0.0.8"
  186. mirage-runtime >= "4.9.0"
  187. mirage-seal
  188. mkaudio >= "1.1.4"
  189. mlgpx
  190. mnet-cli
  191. mnet-dns >= "0.0.5"
  192. mnet-happy-eyeballs >= "0.0.5"
  193. mrmime >= "0.6.0"
  194. mtbox
  195. named-pipe < "0.4.0"
  196. nbd < "4.0.3"
  197. niru
  198. nix-syntax
  199. nuscr >= "2.1.0"
  200. object
  201. obuilder >= "0.4"
  202. ocaml-sbom
  203. ocamlformat >= "0.25.1"
  204. ocamlformat-lib >= "0.28.1"
  205. ocamlformat-mlx
  206. ocamlformat-mlx-lib >= "0.28.1.1"
  207. ocamlgrep
  208. ocamlmig >= "5.3-20250429"
  209. ocgtk < "0.1~preview2"
  210. ochre-cli
  211. ocluster >= "0.2"
  212. ocp-browser >= "1.2.1"
  213. ocp-indent >= "1.9.0"
  214. ocp-indent-nlfork
  215. ocp-index >= "1.4.0"
  216. ocsigen-dune-rules
  217. ocsigen-toolkit = "4.3.0"
  218. odds >= "1.1"
  219. odep
  220. odig >= "0.1.0"
  221. odoc >= "3.1.0"
  222. odoc-driver
  223. odoc-md >= "3.1.0"
  224. olint
  225. omigrate >= "0.3.0"
  226. omod
  227. opam-0install >= "0.6.0"
  228. opam-0install-cudf < "0.4.1"
  229. opam-audit
  230. opam-build
  231. opam-bundle
  232. opam-dune-lint
  233. opam-ed >= "0.5"
  234. opam-graph
  235. opam-grep >= "0.4.0"
  236. opam-minver
  237. opam-package-upgrade
  238. opam-publish >= "3.0.0"
  239. opam-repomin
  240. opam-test
  241. opine
  242. oq
  243. orb
  244. ordma >= "0.0.5"
  245. ortac-core
  246. ortac-dune
  247. ortac-qcheck-stm
  248. ortac-wrapper
  249. osx-fsevents
  250. oui
  251. owee >= "0.8"
  252. owi >= "0.2"
  253. oxbow
  254. passage >= "0.3.2"
  255. pds >= "5.42"
  256. pg_query >= "0.9.8"
  257. pkcs11-cli
  258. plotkicadsch < "0.9.0"
  259. polly >= "0.4.1"
  260. pplumbing < "0.0.16"
  261. ppx_deriving_cmdliner < "0.6.0"
  262. ppx_subliner
  263. ppxlib-tools
  264. prelude < "0.5"
  265. prof_spacetime
  266. prometheus-app
  267. protocol-9p < "0.12.1"
  268. protocol-9p-tool < "0.12.0" | >= "2.1.0"
  269. protocol-9p-unix < "0.12.1"
  270. pyast >= "0.2.0"
  271. pyml_bindgen >= "0.4.1"
  272. pyre-ast >= "0.1.9"
  273. qcow < "0.12.1"
  274. qmp >= "0.20.0"
  275. queenshead
  276. query-json
  277. quickterface
  278. quill
  279. rake
  280. randii
  281. reason >= "3.17.0"
  282. reason-to-mlx
  283. rosetta < "0.2.0"
  284. rpclib
  285. runtime_events_tools >= "0.5.4"
  286. runtime_events_tools_bare >= "0.5.4"
  287. rust-staticlib-gen
  288. salto-analyzer
  289. scfg >= "0.4"
  290. shakuhachi
  291. shared-block-ring
  292. sherlodoc != "3.1.0"
  293. slack
  294. slipshow
  295. smtml >= "0.7.0"
  296. solo5-elftool
  297. sosie
  298. soteria
  299. spin = "0.6.0"
  300. starred_ml >= "0.0.4"
  301. stele
  302. stem
  303. sun
  304. tallgeese
  305. tcpip >= "8.0.0"
  306. tensorflow
  307. testo
  308. testo-lwt
  309. tidy_email_mailgun
  310. tidy_email_sendgrid
  311. tidy_email_smtp
  312. timmy
  313. tls = "0.15.4" | >= "1.0.4"
  314. tls-lwt
  315. toc
  316. topkg-care
  317. torch < "v0.16.0"
  318. transom
  319. tuntap
  320. tw
  321. unic
  322. uring
  323. uring-trace
  324. utcp
  325. vchan < "6.0.2"
  326. vchan-unix
  327. vendredi
  328. vif
  329. wasm_of_ocaml-compiler
  330. wax
  331. wax-lib >= "0.2.0"
  332. wayland >= "1.1"
  333. webauthn
  334. webbrowser >= "0.6.2"
  335. wol-eio
  336. xapi-inventory
  337. xdge
  338. xen-evtchn
  339. xen-evtchn-unix
  340. xen-gnt
  341. yuscii = "0.2.0"

Conflicts

None

Build status

Results of building cmdliner with each compiler on check.ci.ocaml.org, run of against opam-repository 8d8d144. 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.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
2.1.1 good good good good good
  • 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