Skip to main content

command

Function command 

Source
pub fn command<'i, O, P>(
    name: impl Names,
    inner: P,
) -> impl Parser<Argv<'i>, O, Error>
where P: Parser<Argv<'i>, O, Error>,
Expand description

A subcommand: the word name (or any of ["name", "alias", …]), then inner for the rest of the line.

Once the word matches, inner’s errors are committed. After -- no word is a subcommand.