Library
Module
Module type
Parameter
Class
Class type
Functoria runtime.
register t
registers the Cmdliner term k
as a runtime argument and return a callback f
that evaluates to t
s' value passed on the command-line.
f
will raise Invalid_argument
if called before cmdliner's evaluation.
register_arg t
registers the Cmdliner term k
as a runtime argument and return a callback f
that evaluates to t
s' value passed on the command-line.
f
will raise Invalid_argument
if called before cmdliner's evaluation.
val with_argv :
?sections:string list ->
unit Cmdliner.Term.t list ->
string ->
string array ->
unit
with_argv ?sections arguments name argv
evaluates the arguments
terms on the command-line argv
. name
is the executable name. sections
is a list of sections to include in the man page - useful for enforcing a specific order of sections. On evaluation error the application calls exit(3)
with status 64
. If `Help
or `Version
were evaluated, exit(3)
is called with status 63
.