Module Std.Command


module Command: Command

module Flag: sig .. end
type t 
abstract type of commands
val create : summary:string ->
usage_arg:string ->
init:(unit -> 'a) ->
flags:'a Flag.t list ->
anon:('a -> string list -> unit) ->
final:('a -> (unit -> string) -> 'b) -> main:('b -> int) -> t
create constructs a base command from the following data:
val group : summary:string -> (string * t) list -> t
group ~summary [...; (name_i, t_i); ...] is an aggregate command that dispatches to one of the named sub-commands. A "help" sub-command will also be generated for the group.
val run : ?argv:string list -> t -> hash_bang_expand:bool -> int
Run the command against Sys.argv. The labelled argument hash_bang_expand should be set to true when we expect the command to run as the result of calling a #! interpreter script.
module Tab_completion: sig .. end
module Version: sig .. end