functoria-runtime

Runtime support library for functoria-generated code
IN THIS PACKAGE

Runtime command-line arguments

type 'a t

The type for runtime command-line arguments. Similar to Functoria.Key.Arg.t but only available at runtime.

val opt : 'a Cmdliner.Arg.conv -> 'a -> Cmdliner.Arg.info -> 'a t

opt is the runtime companion of Functoria.Ky.Arg.opt.

val opt_all : 'a Cmdliner.Arg.conv -> 'a list -> Cmdliner.Arg.info -> 'a list t

opt_all is the runtime companion of Functoria.Key.Arg.opt_all.

val required : 'a Cmdliner.Arg.conv -> Cmdliner.Arg.info -> 'a t

required is the runtime companion of Functoria.Key.Arg.required.

val key : ?default:'a -> 'a Cmdliner.Arg.conv -> Cmdliner.Arg.info -> 'a t

key is either opt or required, depending if ~default is provided.

val flag : Cmdliner.Arg.info -> bool t

flag is the runtime companion of Functoria.Key.Arg.flag.