Home
last modified time | relevance | path

Searched refs:subcommand_name (Results 1 – 13 of 13) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
Dflag_subcommands.rs19 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 …]
Dsubcommands.rs21 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 …]
Dignore_errors.rs115 assert_eq!(m.subcommand_name().unwrap(), "some"); in subcommand()
Dapp_settings.rs230 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()
Dtests.rs202 if let Some("subcmd") = matches.subcommand_name() { in check_complex_output()
Dconflicts.rs769 assert_eq!(m.subcommand_name().unwrap(), "config"); in subcommand_conflict_negates_required()
/third_party/rust/crates/clap/src/parser/features/
Dsuggestions.rs66 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/
Dmulticall-hostname.rs12 match cmd.get_matches().subcommand_name() { in main()
/third_party/rust/crates/clap/src/parser/
Darg_matcher.rs128 pub(crate) fn subcommand_name(&self) -> Option<&str> { in subcommand_name() method
129 self.matches.subcommand_name() in subcommand_name()
Dvalidator.rs31 let has_subcmd = matcher.subcommand_name().is_some(); in validate()
/third_party/rust/crates/clap/clap_derive/src/derives/
Dsubcommand.rs522 .subcommand_name() in gen_from_arg_matches()
671 if let Some(__clap_name) = __clap_arg_matches.subcommand_name() { in gen_update_from_arg_matches()
Dargs.rs445 …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/
Darg_matches.rs1047 pub fn subcommand_name(&self) -> Option<&str> { in subcommand_name() method