package getopts

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t
val xmap : ('a -> 'b) -> ('b -> 'a -> 'a) -> 'b t -> 'a t
val option : (string -> 'a) -> char -> ('a -> 'b -> 'b) -> string -> 'b t
val flag : char -> ('b -> 'b) -> string -> 'b t
val char : char -> (char -> 'b -> 'b) -> string -> 'b t
val bool : char -> (bool -> 'b -> 'b) -> string -> 'b t
val string : char -> (string -> 'b -> 'b) -> string -> 'b t
val int : char -> (int -> 'b -> 'b) -> string -> 'b t
val float : char -> (float -> 'b -> 'b) -> string -> 'b t
type note
val note : string -> string -> note
type 'a spec
val spec : string -> string -> 'a t list -> (string -> 'a -> 'a) -> note list -> 'a spec
val help : 'a spec -> unit
val usage : 'a spec -> string -> unit
val parse : string array -> 'a spec -> 'a -> 'a
val parse_argv : 'a spec -> 'a -> 'a
type 'a long_option
val long : char -> 'a long_option list -> string -> 'a t
val long_option : (string -> 'a) -> string -> ('a -> 'b -> 'b) -> 'b long_option
val long_flag : string -> ('b -> 'b) -> 'b long_option
val long_char : string -> (char -> 'b -> 'b) -> 'b long_option
val long_bool : string -> (bool -> 'b -> 'b) -> 'b long_option
val long_string : string -> (string -> 'b -> 'b) -> 'b long_option
val long_int : string -> (int -> 'b -> 'b) -> 'b long_option
val long_float : string -> (float -> 'b -> 'b) -> 'b long_option
val store : 'a Pervasives.ref -> 'a -> unit
val set : 'a -> 'a Pervasives.ref -> unit -> unit
val queue : 'a list Pervasives.ref -> 'a -> unit -> unit
OCaml

Innovation. Community. Security.