Skip to main content

handle_generate_completion

Function handle_generate_completion 

Source
pub fn handle_generate_completion(shell: Shell) -> bool
Expand description

Handle the --generate-completion flag.

Generates a shell completion script for the specified shell and writes it to stdout.

§Arguments

  • shell - The shell type to generate completions for

§Returns

Returns true if the flag was handled (program should exit after).