package getopt
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=14a2c956af6145aaf293c62dfa36e099
sha512=1b40a0cf4ba6486626c38b89d7aae033b92c582b50fe160a05560397d9c261d1cc850727dd50602e0342612688c1223b95d0c6900b19f0a343c039577b8f08d0
Description
General command line syntax of GNU getopt and getopt_long, but is close to the spirit of the Arg module.
README
Getopt: command line parsing � la GNU getopt
Copyright (C) 2000-2004 Alain Frisch distributed under an MIT-like license (see the COPYING file)
What is it ?
The OCaml distribution comes with the module Arg specialized in command-line parsing. However, it doesn't support the well known features of GNU getopt and getopt_long.
The module Getopt is an alternative; it supports GNU syntax, but from the programmer point of view, it is close to the spirit of Arg: the programmer gives to the general parsing function a list of possible options, together with the behaviour of these options.
General usage information
The documentation is included in the file getopt.mli. There is an example in test/getopt_test.ml
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by (2)
-
chase
< "1.5" - syguslib-utils
Conflicts
None
Build status
Results of building getopt with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. 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.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 20230213 (this version) | 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