module Command_line: Ketrew_command_line
val run_main : ?argv:string array ->
?override_configuration:Ketrew_configuration.t ->
?additional_commands:((unit, string) Ketrew_unix_io.Deferred_result.t
Cmdliner.Term.t * Cmdliner.Term.info)
list ->
unit -> [ `Never_returns ]
exit n
with n = 0
if
succeed or n > 0
if an error occurs.
argv
: one can provide an array of arguments to be used instead of
Sys.argv
.override_configuration
: providing a custom configuration will prevent
Ketrew from looking up a configuration file.additional_commands
: a list of Cmdliner
commands to add to the
interface.