package posix-getopt

  1. Overview
  2. Docs
Bindings for posix getopt/getopt_long

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v4.0.1.tar.gz
md5=464f431a8517dba4295286dd61f3ff2c
sha512=36d4c64987848fc06a4296c2141d250d95db0092b2d9d4d95f301f5eaada9a3df8ae9703fc8f2407596f6fb474a69863abd5e3d2c08636eb2c0dd67477d316e8

doc/posix-getopt/Posix_getopt/index.html

Module Posix_getoptSource

Sourcetype short = char
Sourcetype long = string * char
Sourcetype arg = [
  1. | `None of unit -> unit
  2. | `Optional of string option -> unit
  3. | `Required of string -> unit
]
Sourcetype 'a opt = {
  1. name : 'a;
  2. arg : arg;
}
Sourceexception Unknown_option of string
Sourceexception Missing_argument of char
Sourceval has_getopt_long : bool
Sourceval has_getopt_long_only : bool
Sourceval print_error : bool -> unit
Sourceval reset : unit -> unit
Sourceval getopt : string array -> short opt list -> string array
Sourceval getopt_long : string array -> long opt list -> string array
Sourceval getopt_long_only : string array -> long opt list -> string array