module type T = sig .. end
The type of commands with names, parameters, and implementation.
val names : string list
The various names for the command.
val description : string
The short description used for command-line help.
val latex_description : string
The LaTeX-formmatted description used for the manual.
val arguments : string option
The kind of waited arguments, if any.
type parameters
The type of parameters to be passed to the command.
val make_parameters : unit ->
parameters * (Arg.key * Arg.spec * Arg.doc) list * Arg.anon_fun
Build a
params, specs, func triplet where:
params are the parameters passed to the run function;
specs are the command-line specifiers passed to
Arg.parse_argv;
func is the anonymous function passed to Arg.parse_argv.
specs and
func are supposed to update
params when passed to
Arg.parse_argv.
val run : parameters -> unit
Actually executes of the command with passed parameters.