Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Common module to create SOLID tools. See examples in tools/
directory of source distribution.
val main :
?options:(Stdlib.Arg.key * Stdlib.Arg.spec * Stdlib.Arg.doc) list ->
?usage:Stdlib.Arg.usage_msg ->
(string list -> (module Ldp.Http.Http) -> unit Lwt.t) ->
unit
main ?options ?usage f
will parse the command line and call f args Http
. Predefined command line options allow to select a profile, use curl instead of cohttp+tls, use a cache directory, specify certificates, ...
options
optional argument can be used to specify additional command line options. A specific usage
message can be specified too.
The f
function takes the anonymous arguments of the command line and the Ldp.Http.Http
module to use to perform queries.