Skip to main content

SPEC_REQUEST

Constant SPEC_REQUEST 

Source
pub const SPEC_REQUEST: &str = "__usage_spec__";
Expand description

The word a tool sends to ask a binary for its own spec.

Not a flag and not a command: a spec request is not something this CLI does, so it is answered before the parse and stays out of the tables — the same reason __complete_word__ is a word rather than a subcommand. It also keeps the endpoint from perturbing the document it prints, which a declared flag would not.