Library
Module
Module type
Parameter
Class
Class type
type spec = Arg.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
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)
Alias for Arg.Help
Alias for Arg.Bad
val parse_and_expand_argv_dynamic :
int ref ->
string array ref ->
(key * spec * doc) list ref ->
anon_fun ->
string ->
unit
val parse_and_expand_argv_dynamic : int ref -> string array ref -> (key * spec * doc) list ref -> anon_fun -> string -> unit
val parse_expand : (key * spec * doc) list -> anon_fun -> usage_msg -> unit
val parse_dynamic : (key * spec * doc) list ref -> anon_fun -> usage_msg -> unit
val parse_argv_dynamic :
?current:int ref ->
string array ->
(key * spec * doc) list ref ->
anon_fun ->
string ->
unit
val parse_argv_dynamic : ?current:int ref -> string array -> (key * spec * doc) list ref -> anon_fun -> string -> unit
val align : ?limit:int -> (key * spec * doc) list -> (key * spec * doc) list
val usage_string : (key * spec * doc) list -> usage_msg -> string
val parse_argv :
?current:int ref ->
string array ->
(key * spec * doc) list ->
anon_fun ->
usage_msg ->
unit
Alias for Arg.parse_argv
val current : int ref
Alias for Arg.current