Page
Library
Module
Module type
Parameter
Class
Class type
Source
Mirage_runtime.Arg
Sourceinclude module type of Functoria_runtime.Arg
The type for runtime command-line arguments. Similar to Functoria.Key.Arg.t
but only available at runtime.
opt
is the runtime companion of Functoria.Ky.Arg.opt
.
required
is the runtime companion of Functoria.Key.Arg.required
.
flag
is the runtime companion of Functoria.Key.Arg.flag
.
val make :
(string -> ('a, [ `Msg of string ]) result) ->
('a -> string) ->
'a Cmdliner.Arg.converter
make of_string pp
is the command-line argument converter using on of_string
and pp
.
S
is the signature used by of_module
to create a command-line argument converter.
of module (module M)
creates a command-line argyument converter from a module satisfying the signature S
.
ipv4_address
converts an IPv4 address.
ipv4
converts ipv4/netmask to Ipaddr.V4.t * Ipaddr.V4.Prefix.t .
ipv6_address
converts IPv6 address.
ipv6
converts IPv6 prefixes.
log_threshold
converts log reporter threshold.
allocation_policy
converts allocation policy.