Searched refs:subcommand_name (Results 1 – 13 of 13) sorted by relevance
/third_party/rust/crates/clap/tests/builder/ |
D | flag_subcommands.rs | 19 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_normal() 44 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_normal_with_alias() 65 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_short() 86 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_args() 111 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_alias() 124 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_alias_same_as_short_flag() 137 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_long_with_alias_same_as_long_flag() 156 assert_eq!(matches1.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_aliases_vis_and_hidden() 160 assert_eq!(matches2.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_aliases_vis_and_hidden() 164 assert_eq!(matches3.subcommand_name().unwrap(), "some"); in flag_subcommand_short_with_aliases_vis_and_hidden() [all …]
|
D | subcommands.rs | 21 assert_eq!(m.subcommand_name().unwrap(), "some"); in subcommand() 46 assert!(m.subcommand_name().is_none()); in subcommand_none_given() 68 assert_eq!(m.subcommand_name().unwrap(), "some"); in subcommand_multiple() 83 assert_eq!(m.subcommand_name(), Some("test")); in single_alias() 92 assert_eq!(m.subcommand_name(), Some("test")); in multiple_aliases() 239 assert_eq!(m.subcommand_name(), Some("module")); in replace() 241 m.subcommand_matches("module").unwrap().subcommand_name(), in replace() 274 assert_eq!(m.subcommand_name(), Some("signer")); in issue_1031_args_with_same_name_no_more_vals() 406 assert_eq!(m.subcommand_name().unwrap(), "global"); in issue_2494_subcommand_is_present() 413 assert!(m.subcommand_name().is_none()); in issue_2494_subcommand_is_present() [all …]
|
D | ignore_errors.rs | 115 assert_eq!(m.subcommand_name().unwrap(), "some"); in subcommand()
|
D | app_settings.rs | 230 assert_eq!(m.subcommand_name(), Some("test")); in infer_subcommands_pass() 241 assert_eq!(m.subcommand_name(), Some("test")); in infer_subcommands_pass_close() 253 assert_eq!(m.subcommand_name(), Some("test")); in infer_subcommands_pass_exact_match()
|
D | tests.rs | 202 if let Some("subcmd") = matches.subcommand_name() { in check_complex_output()
|
D | conflicts.rs | 769 assert_eq!(m.subcommand_name().unwrap(), "config"); in subcommand_conflict_negates_required()
|
/third_party/rust/crates/clap/src/parser/features/ |
D | suggestions.rs | 66 let subcommand_name = subcommand.get_name(); in did_you_mean_flag() localVariable 69 let score = some!(remaining_args.iter().position(|x| subcommand_name == *x)); in did_you_mean_flag() 70 Some((score, (candidate, Some(subcommand_name.to_string())))) in did_you_mean_flag()
|
/third_party/rust/crates/clap/examples/ |
D | multicall-hostname.rs | 12 match cmd.get_matches().subcommand_name() { in main()
|
/third_party/rust/crates/clap/src/parser/ |
D | arg_matcher.rs | 128 pub(crate) fn subcommand_name(&self) -> Option<&str> { in subcommand_name() method 129 self.matches.subcommand_name() in subcommand_name()
|
D | validator.rs | 31 let has_subcmd = matcher.subcommand_name().is_some(); in validate()
|
/third_party/rust/crates/clap/clap_derive/src/derives/ |
D | subcommand.rs | 522 .subcommand_name() in gen_from_arg_matches() 671 if let Some(__clap_name) = __clap_arg_matches.subcommand_name() { in gen_update_from_arg_matches()
|
D | args.rs | 445 …if #arg_matches.subcommand_name().map(<#subcmd_type as clap::Subcommand>::has_subcommand).unwrap_o… in gen_constructor()
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 1047 pub fn subcommand_name(&self) -> Option<&str> { in subcommand_name() method
|