package ocaml-webworker

  1. Overview
  2. Docs

Flag parsing utils

type 'a t = string list -> 'a -> string list * 'a
type 'a table = (string, 'a t) Std.Hashtbl.t
val unit : ('a -> 'a) -> 'a t
val param : string -> (string -> 'a -> 'a) -> 'a t
val unit_ignore : 'a t
val param_ignore : string list -> 'a -> string list * 'a
val bool : (bool -> 'a -> 'a) -> 'a t
type docstring = string
type 'a spec = string * docstring * 'a t
val assoc3 : 'a -> ('a * 'b * 'c) list -> 'c
val mem_assoc3 : 'a -> ('a * 'b * 'c) list -> bool
val parse_one : warning:(string -> 'a) -> (string, string list -> 'b -> string list * 'b) Std.Hashtbl.t -> (string * 'c * (string list -> 'd -> string list * 'd)) list -> string list -> 'b -> 'd -> (string list * 'b * 'd) option
val parse_all : warning:(string -> 'a) -> (string, string list -> 'b -> string list * 'b) Std.Hashtbl.t -> (string * 'c * (string list -> 'd -> string list * 'd)) list -> string list -> 'b -> 'd -> 'b * 'd
OCaml

Innovation. Community. Security.