Library
Module
Module type
Parameter
Class
Class type
Functoria runtime.
module Arg : sig ... end
Arg
defines values that can be set by runtime command-line arguments. This module is the runtime companion of Functora.Runtime_arg
.
register t
registers the Cmdliner term k
as a runtime key 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.
with_argv keys name argv
evaluates the keys
terms on the command-line argv
. name
is the executable name. On evaluation error the application calls exit(3)
with status 64
. If `Help
or `Version
were evaluated, exit(3)
is called with status 63
.