type 'a t = 'a Arg_type.tThe type of a command line argument.
val create : ?complete:Auto_complete.t -> ?key:'a Univ_map.Multi.Key.t -> (Base.String.t -> 'a) -> 'a tAn argument type includes information about how to parse values of that type from the command line, and (optionally) how to autocomplete partial arguments of that type via bash's programmable tab-completion.
If the
of_stringfunction raises an exception, command line parsing will be aborted and the exception propagated up to top-level and printed along with command-line help.
val map : ?key:'b Univ_map.Multi.Key.t -> 'a t -> f:('a -> 'b) -> 'b tTransforms the result of a
tusingf.
val of_map : ?key:'a Univ_map.Multi.Key.t -> 'a String.Map.t -> 'a tAn auto-completing
Arg_typeover a finite set of values.
val of_alist_exn : ?key:'a Univ_map.Multi.Key.t -> (Base.String.t * 'a) Base.List.t -> 'a tConvenience wrapper for
of_map. Raises on duplicate keys.
val comma_separated : ?allow_empty:Base.Bool.t -> ?key:'a Base.List.t Univ_map.Multi.Key.t -> ?strip_whitespace:Base.Bool.t -> ?unique_values:Base.Bool.t -> 'a t -> 'a Base.List.t tcomma_separated taccepts comma-separated lists of arguments parsed byt.If
strip_whitespace = true, whitespace is stripped from each comma-separated string before it is parsed byt.If
allow_empty = truethen the empty string (or just whitespace, ifstrip_whitespace = true) results in an empty list, and ifallow_empty = falsethen the empty string will fail to parse.If
unique_values = trueno autocompletion will be offered for arguments already supplied in the fragment to complete.
module Export : sig ... endValues to include in other namespaces.