Functoria_runtime.Arg
Arg
defines command-line arguments which can be set at runtime. This module is the runtime companion of Functoria_key
. It exposes a subset of Cmdliner.Arg.
The type for runtime command-line arguments. Similar to Functoria_key
.Arg.t but only available at runtime.
val opt : 'a Cmdliner.Arg.converter -> 'a -> Cmdliner.Arg.info -> 'a t
opt
is the runtime companion of Functoria_key
.Arg.opt.
val required : 'a Cmdliner.Arg.converter -> Cmdliner.Arg.info -> 'a t
required
is the runtime companion of Functoria_key
.Arg.required.
val key : ?default:'a -> 'a Cmdliner.Arg.converter -> Cmdliner.Arg.info -> 'a t
key
is either opt
or runtime
, depending if ~default
is provided.
val flag : Cmdliner.Arg.info -> bool t
flag
is the runtime companion of Functoria_key
.Arg.flag.