Module Command.Flag.Action

module Action: sig .. end

Deprecated

This is the old deprecated interface to Flag

type 'accum t 
'accum-mutating action to perform when processing a flag
val noarg : ('accum -> unit) -> 'accum t
an action for a flag that takes no additional argument
val arg : ('accum -> string -> unit) -> 'accum t
an action for a flag that takes an additional string argument
val rest : ('accum -> string list -> unit) -> 'accum t
rest f: an action for a flag that signals the end of flag processing. all remaining arguments are passed to the f

rest f: an action for a flag that signals the end of flag processing. all remaining arguments are passed to the f

val int : ('accum -> int -> unit) -> 'accum t
an action for a flag that takes an additional int argument
val bool : ('accum -> bool -> unit) -> 'accum t
an action for a flag that takes an additional bool argument
val float : ('accum -> float -> unit) -> 'accum t
an action for a flag that takes an additional float argument