- clap_complete
- Shell
Clap complete enum - name of shell
examples/clap/clap-complete-shell/src/main.rs
use clap::{value_parser, Parser}; use clap_complete::Shell; #[derive(Parser, Debug)] struct Cli { #[clap(long, value_parser=value_parser!(Shell))] shell: Shell, } fn main() { let args = Cli::parse(); println!("{args:?}"); }