DEPRECATED: use Core.Std.Command instead
('main_in, 'main_out) t
is a type of composable command-line
specifications.
Every combinator for building t
-values is polymorphic in
'main_out
. In the final specification expected by cmd
used
to construct a command, 'main_out
is specialized to unit
).
Various primitive specifications add parameters one at a time,
so the resulting type of main
is
arg1 -> ... -> argN -> unit
It may help to think of ('a, 'b) t
as a function space 'a -> 'b
embellished with extra information about how to parse command line,
including documentation about what various flags are for.
argument parsing
flags
anonymous arguments
various combinators
constructing the command we've specified