Functoria_runtime.Key
Key
defines values that can be set by runtime command-line arguments. This module is the runtime companion of Functoria_key
.
val get : 'a t -> 'a
get k
is the value of the key k
. Use the default value if no command-line argument is provided.
val default : 'a t -> 'a option
default k
is the default value of k
, if one is available. This function can be called before cmdliner's evaluation.
val term : 'a t -> unit Cmdliner.Term.t
term k
is the Cmdliner
term whose evaluation sets k
s' value to the parsed command-line argument.