Skip to main content

parse_partial_for_completion

Function parse_partial_for_completion 

Source
pub fn parse_partial_for_completion(
    spec: &Spec,
    input: &[String],
) -> Result<ParseOutput, Error>
Expand description

Parse the words before the cursor for completion.

Like parse_partial, except that default_subcommand_on_empty is not applied. The word under the cursor is still to be typed, so the line is not an empty invocation: the root’s subcommands and flags are all still valid next words, and routing into the default command would hide them.