Module Core_kernel.Arg
INRIA's original command-line parsing library.
The Command module is generally recommended over direct use of this library.
include module type of Caml.Arg
type spec= Stdlib__arg.spec=|Unit of unit -> unit|Bool of bool -> unit|Set of bool Stdlib.ref|Clear of bool Stdlib.ref|String of string -> unit|Set_string of string Stdlib.ref|Int of int -> unit|Set_int of int Stdlib.ref|Float of float -> unit|Set_float of float Stdlib.ref|Tuple of spec list|Symbol of string list * string -> unit|Rest of string -> unit|Expand of string -> string arraytype key= stringtype doc= stringtype usage_msg= stringtype anon_fun= string -> unit
val parse : (key * spec * doc) list -> anon_fun -> usage_msg -> unitval parse_dynamic : (key * spec * doc) list Stdlib.ref -> anon_fun -> usage_msg -> unitval parse_argv : ?current:int Stdlib.ref -> string array -> (key * spec * doc) list -> anon_fun -> usage_msg -> unitval parse_argv_dynamic : ?current:int Stdlib.ref -> string array -> (key * spec * doc) list Stdlib.ref -> anon_fun -> string -> unitval parse_and_expand_argv_dynamic : int Stdlib.ref -> string array Stdlib.ref -> (key * spec * doc) list Stdlib.ref -> anon_fun -> string -> unitval parse_expand : (key * spec * doc) list -> anon_fun -> usage_msg -> unit
val usage : (key * spec * doc) list -> usage_msg -> unitval usage_string : (key * spec * doc) list -> usage_msg -> stringval align : ?limit:int -> (key * spec * doc) list -> (key * spec * doc) listval current : int Stdlib.refval read_arg : string -> string arrayval read_arg0 : string -> string arrayval write_arg : string -> string array -> unitval write_arg0 : string -> string array -> unit
val sort_and_align : (key * spec * doc) Core_kernel__.Import.list -> (key * spec * doc) Core_kernel__.Import.listLike
align, except that the specification list is also sorted by key