Arguments

Sourcetype absence =
  1. | Err
    (*

    an error is reported.

    *)
  2. | Val of string Stdlib.Lazy.t
    (*

    if <> "", takes the given default value.

    *)
  3. | Doc of string
    (*

    if <> "", a doc string interpreted in the doc markup language.

    *)

The type for what happens if the argument is absent from the cli.

Sourcetype opt_kind =
  1. | Flag
    (*

    without value, just a flag.

    *)
  2. | Opt
    (*

    with required value.

    *)
  3. | Opt_vopt of string
    (*

    with optional value, takes given default.

    *)

The type for optional argument kinds.

Sourcetype pos_kind
Sourceval pos : rev:bool -> start:int -> len:int option -> pos_kind
Sourceval pos_rev : pos_kind -> bool
Sourceval pos_start : pos_kind -> int
Sourceval pos_len : pos_kind -> int option
Sourcetype t
Sourceval v : ?deprecated:string -> ?absent:string -> ?docs:string -> ?docv:string -> ?doc:string -> ?env:Env.info -> string list -> t
Sourceval id : t -> int
Sourceval deprecated : t -> string option
Sourceval absent : t -> absence
Sourceval env : t -> Env.info option
Sourceval doc : t -> string
Sourceval docv : t -> string
Sourceval docs : t -> string
Sourceval opt_names : t -> string list
Sourceval opt_name_sample : t -> string
Sourceval opt_kind : t -> opt_kind
Sourceval pos_kind : t -> pos_kind
Sourceval make_req : t -> t
Sourceval make_all_opts : t -> t
Sourceval make_opt : absent:absence -> kind:opt_kind -> t -> t
Sourceval make_opt_all : absent:absence -> kind:opt_kind -> t -> t
Sourceval make_pos : pos:pos_kind -> t -> t
Sourceval make_pos_abs : absent:absence -> pos:pos_kind -> t -> t
Sourceval is_opt : t -> bool
Sourceval is_pos : t -> bool
Sourceval is_req : t -> bool
Sourceval pos_cli_order : t -> t -> int
Sourceval rev_pos_cli_order : t -> t -> int
Sourceval compare : t -> t -> int
Sourcemodule Set : Stdlib.Set.S with type elt = t