Module Cmdliner_cline

Command lines.

val is_opt : string -> bool
val has_complete_prefix : string -> bool
val get_token_to_complete : string -> string

Command lines

val create : ?peek_opts:bool -> legacy_prefixes:bool -> for_completion:bool -> Cmdliner_def.Arg_info.Set.t -> string list -> [ `Ok of t | `Complete of Cmdliner_def.Complete.t | `Error of string * t ]
val opt_arg : t -> Cmdliner_def.Arg_info.t -> (int * string * string option) list
val pos_arg : t -> Cmdliner_def.Arg_info.t -> string list
val actual_args : t -> Cmdliner_def.Arg_info.t -> string list

Actual command line arguments from the command line

Deprecations

type deprecated

The type for deprecation invocations. This include both environment variable deprecations and argument deprecations.

val deprecated : env:(string -> string option) -> t -> deprecated list

deprecated ~env cli are the deprecated invocations that occur when parsing cli.

pp_deprecated formats deprecations.