Terms

Sourcetype term_escape = [
  1. | `Error of bool * string
  2. | `Help of Cmdliner_manpage.format * string option
]
Sourcetype 'a parser = Cmdliner_info.Eval.t -> Cmdliner_cline.t -> ('a, [ `Parse of string | term_escape ]) Stdlib.result

Type type for command line parser. given static information about the command line and a command line to parse returns an OCaml value.

Sourcetype 'a t = Cmdliner_info.Arg.Set.t * 'a parser

The type for terms. The list of arguments it can parse and the parsing function that does so.

Sourceval const : 'a -> 'a t
Sourceval app : ('a -> 'b) t -> 'a t -> 'b t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval product : 'a t -> 'b t -> ('a * 'b) t
Sourcemodule Syntax : sig ... end
Sourceval ($) : ('a -> 'b) t -> 'a t -> 'b t
Sourcetype 'a ret = [
  1. | `Ok of 'a
  2. | term_escape
]
Sourceval ret : 'a ret t -> 'a t
Sourceval term_result : ?usage:bool -> ('a, [ `Msg of string ]) Stdlib.result t -> 'a t
Sourceval term_result' : ?usage:bool -> ('a, string) Stdlib.result t -> 'a t
Sourceval cli_parse_result : ('a, [ `Msg of string ]) Stdlib.result t -> 'a t
Sourceval cli_parse_result' : ('a, string) Stdlib.result t -> 'a t
Sourceval main_name : string t
Sourceval choice_names : string list t
Sourceval with_used_args : 'a t -> ('a * string list) t