module Flag:sig..end
type 'a t
'aval name : 'a t -> stringtype('a, 'b)create =string ->
?aliases:string list ->
?full_flag_required:bool -> 'b -> doc:string -> 'a t
val of_arg : Core.Std.Arg.t -> unit tval noarg : (unit, unit -> unit) createval string : (unit, string -> unit) createval int : (unit, int -> unit) createval float : (unit, float -> unit) createval bool : (unit, bool -> unit) createval gen : (string -> 'gen) -> (unit, 'gen -> unit) createval set_string : (unit, string Pervasives.ref) createval set_string_opt : (unit, string option Pervasives.ref) createval set_int : (unit, int Pervasives.ref) createval set_int_opt : (unit, int option Pervasives.ref) createval set_float : (unit, float Pervasives.ref) createval set_float_opt : (unit, float option Pervasives.ref) createval set_date : (unit, Core.Date.t Pervasives.ref) createval set_date_opt : (unit, Core.Date.t option Pervasives.ref) createval set : (unit, bool Pervasives.ref) createval clear : (unit, bool Pervasives.ref) createval set_gen : (string -> 'gen) ->
(unit, 'gen Pervasives.ref) createval set_gen_opt : (string -> 'gen) ->
(unit, 'gen option Pervasives.ref) createval noarg_acc : ('a, 'a -> 'a) createval string_acc : ('a, 'a -> string -> 'a) createval int_acc : ('a, 'a -> int -> 'a) createval bool_acc : ('a, 'a -> bool -> 'a) createval float_acc : ('a, 'a -> float -> 'a) createval date_acc : ('a, 'a -> Core.Date.t -> 'a) createrest f: a flag that signals the end of flag processing. all remaining arguments
are passed to the fval rest_acc : ('a, 'a -> string list -> 'a) createval gen_acc : (string -> 'gen) -> ('a, 'a -> 'gen -> 'a) createval noarg_mut : ('a, 'a -> unit) createval arg_mut : ('a, 'a -> string -> unit) createval string_mut : ('a, 'a -> string -> unit) createval int_mut : ('a, 'a -> int -> unit) createval bool_mut : ('a, 'a -> bool -> unit) createval float_mut : ('a, 'a -> float -> unit) createval date_mut : ('a, 'a -> Core.Date.t -> unit) createrest f: a flag that signals the end of flag processing. all remaining arguments
are passed to the fval rest_mut : ('a, 'a -> string list -> unit) createval gen_mut : (string -> 'gen) -> ('a, 'a -> 'gen -> unit) createmodule Action:sig..end
val create : ?aliases:string list ->
?full_flag_required:bool ->
name:string ->
doc:string ->
'a Action.t -> 'a tval lift : 'a t ->
project:('b -> 'a * ('a -> 'b)) -> 'b tlift t ~project transforms a flag with accumulator type 'a
into a flag with a more informative accumulator type 'b
provided that project x returns a pair consisting of
1. a 'a-value extracted from the 'b-value x, and
2. a function for rebuilding a modified 'b-value from
the modified 'a-value resulting from processing the flag.
The intended use pattern for lift is when 'b is a record type
with a field foo of type 'a and project is
fun r -> (r.foo, (fun foo' -> { r with foo = foo' }))
val lift_unit : unit t -> 'any tval to_spec : ('accum -> 'accum) Pervasives.ref ->
'accum t -> ('c, 'c) Core.Std.Command.Spec.tval to_spec_unit : unit t -> ('c, 'c) Core.Std.Command.Spec.tval to_spec_units : unit t list -> ('c, 'c) Core.Std.Command.Spec.t