cmdliner
cmdliner copied to clipboard
Declarative definition of command line interfaces for OCaml
It would be nice to have support for configuration files to supplement the arguments passed on the command line (with the arguments on the command line taking precedence). The configuration...
Hi! I noticed minor typos whilst diving into the docs, so I ran a spell checker. Supersedes #150.
In [Getting Started](https://erratique.ch/software/cmdliner/doc/tutorial.html) there is a typo. This ```ocaml let cmd = Cmd.v (Cmd.info "revolt") revolt_t ``` should probably be this: ```ocaml let revolt_cmd = Cmd.v (Cmd.info "revolt") revolt_t ```
I just were in a situation where I wanted to create an alternative shortcircuiting option, lets call it `--version-of-foo`. From the interface there doesn't seem to be an elegant solution....
I'm updating some `Cmdliner` code to the new API and I have a usage of `Term.name` for which the compiler gives the following warning: ``` Alert deprecated: Cmdliner.Term.name Use Cmd.info_name...
Just a simple fix for a missing module implementation error that I discovered while trying to update the version of cmdliner used in nixpkgs. Here's the error I get when...
Since `isatty` seems to be bound to make it in the stdlib (https://github.com/ocaml/ocaml/pull/11128), I'm willing to use `caml_sys_tty` primitive (available since this https://github.com/ocaml/ocaml/commit/a69e3e3099bdd26e2db986ab0e43add9309bcc79 which went into `4.03`). Nothing fancy except...
Cmdliner-1.1.0 apparently uses an invalid command line option to `groff` on macOS. When I use my tool in a way that should trigger help display, I get an empty man...