pub(crate) fn cli() -> CommandExpand description
The whole command tree, in one place.
This was a const USAGE and a flat match per mode, on the argument that a
parser crate is more code than the flag set it parses. That was true of the
parsing and false of everything around it: the usage text, the generated CLI
page and — once shell completion was asked for — a script per shell all
restate the same flags, with nothing holding them together. One tree is what
--help, mira completion and the parser now all read, so a flag is
accepted, documented and completed in the same edit.
Five crates against a tree of 148: clap, clap_builder, clap_lex,
anstyle and clap_complete. derive is off because it costs syn and
its tree to generate a struct this file would rather write out, and color
is off because everything else this binary prints already decides its own
colour from is_terminal.