Skip to main content

make_completion_option

Function make_completion_option 

Source
pub fn make_completion_option(complete_var: &str) -> CompletionOption
Expand description

Add the shell completion option to a command.

This returns options that can be added to a command to enable shell completion script generation.

ยงExample

use click::completion::make_completion_option;

let opt = make_completion_option("_MYAPP_COMPLETE");
assert!(!opt.is_completion_requested());