Shape.Flag_info
type t = {
name : Base.string;
See flag_name
below.
doc : Base.string;
aliases : Base.string Base.list;
}
include Ppx_compare_lib.Comparable.S with type t := t
val aliases : t -> Base.string Base.list
val doc : t -> Base.string
val name : t -> Base.string
module Fields : sig ... end
val sexp_of_t : t -> Sexplib0.Sexp.t
val flag_name : t -> Base.string Base.Or_error.t
flag_name
infers the string which one would pass on the command line. It is not the same as the raw name
field, which additionally encodes num_occurrences
and requires_arg
(sort of).
val num_occurrences : t -> Num_occurrences.t Base.Or_error.t
val requires_arg : t -> Base.bool Base.Or_error.t
requires_arg
gives undefined behavior on escape
flags. This is a limitation of the underlying shape representation.
val t_of_sexp : Base.Sexp.t -> t