You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like cmdliner, we don't list enum values in the help:
ocaml# type t = { foo: string [@enum ["a", "b"]] [@docv "FOO"];(** Hello *) } [@@deriving cmdliner];;
typet = { foo : string; }
valcmdliner_term : unit -> tCmdliner.Term.t=<fun>
ocaml# Cmdliner.Term.(eval~argv:[| "hello"; "--help=plain" |] (cmdliner_term (), info"hello"));;
NAMEhelloSYNOPSIShello [OPTION]...
OPTIONS--foo=FOO (required)
Hello--help[=FMT] (default=auto)
Show this help in format FMT.The value FMT must be one of `auto',
`pager', `groff' or`plain'. With`auto', the format is `pager` or`plain' whenever the TERM env var is `dumb' or undefined.
- : t Cmdliner.Term.result =`Help
It'd be cool to have an option
typet = {
foo: string [@enum ["a", "b"]] [@docv "FOO"] [@cmdliner.list_enum];(** Some help *)
} [@@deriving cmdliner];;
The text was updated successfully, but these errors were encountered:
Like cmdliner, we don't list enum values in the help:
It'd be cool to have an option
The text was updated successfully, but these errors were encountered: