package stdcompat

  1. Overview
  2. Docs
exception Help of string
exception Bad of string
val not_implemented : unit -> 'a
type spec =
  1. | Unit of unit -> unit
  2. | Bool of bool -> unit
  3. | Set of bool Stdlib.ref
  4. | Clear of bool Stdlib.ref
  5. | String of string -> unit
  6. | Set_string of string Stdlib.ref
  7. | Int of int -> unit
  8. | Set_int of int Stdlib.ref
  9. | Float of float -> unit
  10. | Set_float of float Stdlib.ref
  11. | Tuple of spec list
  12. | Symbol of string list * string -> unit
  13. | Rest of string -> unit
  14. | Rest_all of string list -> unit
  15. | Expand of string -> string array
type key = string
type doc = string
type usage_msg = string
type anon_fun = string -> unit
val no_expand : spec -> Stdlib.Arg.spec
val expand : Stdlib.Arg.spec -> spec
val no_expand_list : ('a * spec * 'b) list -> ('a * Stdlib.Arg.spec * 'b) list
val expand_list : ('a * Stdlib.Arg.spec * 'b) list -> ('a * spec * 'b) list
val usage_string : (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list -> Stdlib.Arg.usage_msg -> string
val align : ?limit:'a -> (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list -> (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list
val parse : (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list -> Stdlib.Arg.anon_fun -> Stdlib.Arg.usage_msg -> unit
val parse_argv : ?current:int Stdlib.ref -> string array -> (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list -> Stdlib.Arg.anon_fun -> Stdlib.Arg.usage_msg -> unit
val usage : (Stdlib.Arg.key * spec * Stdlib.Arg.doc) list -> Stdlib.Arg.usage_msg -> unit
val current : int Stdlib.ref
val read_aux : bool -> char -> string -> string array
val read_arg : string -> string array
val read_arg0 : string -> string array
val write_aux : char -> string -> string array -> unit
val write_arg : string -> string array -> unit
val write_arg0 : string -> string array -> unit
val parse_argv_dynamic : ?current:'a -> 'b -> 'c
val parse_dynamic : 'a -> 'b
val parse_expand : 'a -> 'b
val parse_and_expand_argv_dynamic : 'a -> 'b
OCaml

Innovation. Community. Security.