123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164moduletypeS=sigtypespec=Arg.spec=|Unitof(unit->unit)|Boolof(bool->unit)|Setofboolref|Clearofboolref|Stringof(string->unit)|Set_stringofstringref|Intof(int->unit)|Set_intofintref|Floatof(float->unit)|Set_floatoffloatref|Tupleofspeclist|Symbolofstringlist*(string->unit)|Restof(string->unit)|Rest_allof(stringlist->unit)|Expandof(string->stringarray)(*
type spec =
| Unit of (unit -> unit)
| Bool of (bool -> unit)
| Set of bool ref
| Clear of bool ref
| String of (string -> unit)
| Set_string of string ref
| Int of (int -> unit)
| Set_int of int ref
| Float of (float -> unit)
| Set_float of float ref
| Tuple of spec list
| Symbol of string list * (string -> unit)
| Rest of (string -> unit)
| Rest_all of (string list -> unit)
| Expand of (string -> string array)
*)(** @since 4.12.0:
type spec =
| Unit of (unit -> unit)
| Bool of (bool -> unit)
| Set of bool ref
| Clear of bool ref
| String of (string -> unit)
| Set_string of string ref
| Int of (int -> unit)
| Set_int of int ref
| Float of (float -> unit)
| Set_float of float ref
| Tuple of spec list
| Symbol of string list * (string -> unit)
| Rest of (string -> unit)
| Rest_all of (string list -> unit)
| Expand of (string -> string array)
*)typekey=string(*
type key = string
*)(** @since 3.08.0: type key = string
*)typedoc=string(*
type doc = string
*)(** @since 3.08.0: type doc = string
*)typeusage_msg=string(*
type usage_msg = string
*)(** @since 3.08.0: type usage_msg = string
*)typeanon_fun=string->unit(*
type anon_fun = string -> unit
*)(** @since 3.08.0: type anon_fun = string -> unit
*)exceptionHelpofstring(** Alias for {!Arg.Help} *)exceptionBadofstring(** Alias for {!Arg.Bad} *)valparse_and_expand_argv_dynamic:intref->stringarrayref->(key*spec*doc)listref->anon_fun->string->unit(** @since 4.05.0:
val parse_and_expand_argv_dynamic :
int ref ->
string array ref ->
(key * spec * doc) list ref -> anon_fun -> string -> unit *)valparse_expand:(key*spec*doc)list->anon_fun->usage_msg->unit(** @since 4.05.0:
val parse_expand :
(key * spec * doc) list -> anon_fun -> usage_msg -> unit *)valread_arg:string->stringarray(** @since 4.05.0: val read_arg : string -> string array *)valread_arg0:string->stringarray(** @since 4.05.0: val read_arg0 : string -> string array *)valwrite_arg:string->stringarray->unit(** @since 4.05.0: val write_arg : string -> string array -> unit *)valwrite_arg0:string->stringarray->unit(** @since 4.05.0: val write_arg0 : string -> string array -> unit *)valparse_dynamic:(key*spec*doc)listref->anon_fun->usage_msg->unit(** @since 4.02.0:
val parse_dynamic :
(key * spec * doc) list ref -> anon_fun -> usage_msg -> unit *)valparse_argv_dynamic:?current:intref->stringarray->(key*spec*doc)listref->anon_fun->string->unit(** @since 4.02.0:
val parse_argv_dynamic :
?current:int ref ->
string array ->
(key * spec * doc) list ref -> anon_fun -> string -> unit *)valalign:?limit:int->(key*spec*doc)list->(key*spec*doc)list(** @since 4.02.0:
val align :
?limit:int -> (key * spec * doc) list -> (key * spec * doc) list *)valusage_string:(key*spec*doc)list->usage_msg->string(** @since 3.12.0:
val usage_string : (key * spec * doc) list -> usage_msg -> string *)valparse:(key*spec*doc)list->anon_fun->usage_msg->unit(** Alias for {!Arg.parse} *)valparse_argv:?current:intref->stringarray->(key*spec*doc)list->anon_fun->usage_msg->unit(** Alias for {!Arg.parse_argv} *)valusage:(key*spec*doc)list->usage_msg->unit(** Alias for {!Arg.usage} *)valcurrent:intref(** Alias for {!Arg.current} *)end