Home
last modified time | relevance | path

Searched refs:has_subcommand (Results 1 – 6 of 6) sorted by relevance

/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs69 let has_subcommand = gen_has_subcommand(variants); in gen_for_enum() localVariable
118 fn has_subcommand(__clap_name: &str) -> bool { in gen_for_enum()
119 #has_subcommand in gen_for_enum()
395 if <#ty as clap::Subcommand>::has_subcommand(__clap_name) { in gen_has_subcommand()
523 .map(|__clap_name| <#ty as clap::Subcommand>::has_subcommand(__clap_name)) in gen_from_arg_matches()
648 if <#ty as clap::Subcommand>::has_subcommand(__clap_name) { in gen_update_from_arg_matches()
Dargs.rs445 …rg_matches.subcommand_name().map(<#subcmd_type as clap::Subcommand>::has_subcommand).unwrap_or(fal… in gen_constructor()
/third_party/rust/crates/clap/src/
Dderive.rs342 fn has_subcommand(name: &str) -> bool; in has_subcommand() method
463 fn has_subcommand(name: &str) -> bool { in has_subcommand() method
464 <T as Subcommand>::has_subcommand(name) in has_subcommand()
/third_party/rust/crates/clap/tests/derive/
Dsubcommands.rs575 assert!(Subcommands::has_subcommand("add")); in skip_subcommand()
576 assert!(Subcommands::has_subcommand("remove")); in skip_subcommand()
577 assert!(!Subcommands::has_subcommand("skip")); in skip_subcommand()
578 assert!(!Subcommands::has_subcommand("other")); in skip_subcommand()
/third_party/rust/crates/clap/examples/derive_ref/
Dhand_subcommand.rs63 fn has_subcommand(name: &str) -> bool { in has_subcommand() method
/third_party/rust/crates/clap/clap_derive/src/
Ddummies.rs55 fn has_subcommand(name: &str) -> bool { in subcommand()