package extlib-compat

  1. Overview
  2. Docs
exception No_value
exception Option_error of string * string
exception Option_help
type !'a t = {
  1. option_set : string -> string list -> unit;
  2. option_set_value : 'a -> unit;
  3. option_get : unit -> 'a option;
  4. option_metavars : string list;
  5. option_defhelp : string option;
}
val get : 'a t -> 'a
val set : 'a t -> 'a -> unit
val opt : 'a t -> 'a option
val is_set : 'a t -> bool
val value_option : string -> 'a option -> (string -> 'a) -> (exn -> string -> string) -> 'a t
val callback_option : string -> (string -> 'a) -> (exn -> string -> string) -> ('a -> unit) -> unit t
OCaml

Innovation. Community. Security.