package cmdliner

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type +'a t
val pure : 'a -> 'a t
val ($) : ('a -> 'b) t -> 'a t -> 'b t
val app : ('a -> 'b) t -> 'a t -> 'b t
type !'a ret = [
  1. | `Error of bool * string
  2. | `Help of [ `Groff | `Pager | `Plain ] * string option
  3. | `Ok of 'a
]
val ret : 'a ret t -> 'a t
val main_name : string t
val choice_names : string list t
val man_format : [ `Groff | `Pager | `Plain ] t
type info
val info : ?sdocs:string -> ?man:Manpage.block list -> ?docs:string -> ?doc:string -> ?version:string -> string -> info
val name : info -> string
type !'a result = [
  1. | `Error of [ `Exn | `Parse | `Term ]
  2. | `Help
  3. | `Ok of 'a
  4. | `Version
]
val eval : ?help:Format.formatter -> ?err:Format.formatter -> ?catch:bool -> ?argv:string array -> ('a t * info) -> 'a result
val eval_choice : ?help:Format.formatter -> ?err:Format.formatter -> ?catch:bool -> ?argv:string array -> ('a t * info) -> ('a t * info) list -> 'a result
val eval_peek_opts : ?version_opt:bool -> ?argv:string array -> 'a t -> 'a option * 'a result
OCaml

Innovation. Community. Security.