/external/rust/crates/structopt/tests/ |
D | issues.rs | 27 assert!(Cli::clap().get_matches_from_safe(&["test"]).is_err()); in issue_151() 29 .get_matches_from_safe(&["test", "--foo"]) in issue_151() 32 .get_matches_from_safe(&["test", "--bar"]) in issue_151() 35 .get_matches_from_safe(&["test", "--zebra"]) in issue_151() 38 .get_matches_from_safe(&["test", "--foo", "--bar"]) in issue_151() 60 .get_matches_from_safe(&["test", "some-command", "test-command"]) in issue_289() 63 .get_matches_from_safe(&["test", "some", "test-command"]) in issue_289() 66 .get_matches_from_safe(&["test", "some-command", "test"]) in issue_289() 69 .get_matches_from_safe(&["test", "some", "test"]) in issue_289()
|
D | nested-subcommands.rs | 39 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_cmd() 94 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd"]); in test_badinput() 96 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--verbose"]); in test_badinput() 98 let result = Opt::clap().get_matches_from_safe(&["test", "--badopt", "add"]); in test_badinput() 100 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badopt"]); in test_badinput() 171 .get_matches_from_safe(args) in sub_sub_cmd_with_option()
|
D | flags.rs | 31 assert!(Opt::clap().get_matches_from_safe(&["test", "-i"]).is_err()); in unique_flag() 33 .get_matches_from_safe(&["test", "-a", "foo"]) in unique_flag() 36 .get_matches_from_safe(&["test", "-a", "-a"]) in unique_flag() 39 .get_matches_from_safe(&["test", "-a", "--alice"]) in unique_flag() 73 assert!(Opt::clap().get_matches_from_safe(&["test", "-i"]).is_err()); in multiple_flag() 75 .get_matches_from_safe(&["test", "-a", "foo"]) in multiple_flag()
|
D | arguments.rs | 19 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in required_argument() 21 .get_matches_from_safe(&["test", "42", "24"]) in required_argument() 34 .get_matches_from_safe(&["test", "42", "24"]) in optional_argument() 48 .get_matches_from_safe(&["test", "42", "24"]) in argument_with_default()
|
D | custom-string-parsers.rs | 77 .get_matches_from_safe(&["test", "-n", "gg"]) in test_parse_hex() 224 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in test_custom_bool() 225 assert!(Opt::clap().get_matches_from_safe(&["test", "-d"]).is_err()); in test_custom_bool() 227 .get_matches_from_safe(&["test", "-dfoo"]) in test_custom_bool() 301 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in test_cstring() 304 .get_matches_from_safe(&["test", "bla\0bla"]) in test_cstring()
|
D | subcommands.rs | 74 let result = Opt::clap().get_matches_from_safe(&["test", "badcmd", "-i", "-v"]); in test_no_parse() 77 let result = Opt::clap().get_matches_from_safe(&["test", "add", "--badoption"]); in test_no_parse() 80 let result = Opt::clap().get_matches_from_safe(&["test"]); in test_no_parse() 183 let result = Opt::clap().get_matches_from_safe(&["test"]); in enum_in_enum_subsubcommand() 186 let result = Opt::clap().get_matches_from_safe(&["test", "daemon"]); in enum_in_enum_subsubcommand()
|
D | options.rs | 30 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in required_option() 32 .get_matches_from_safe(&["test", "-a42", "-a24"]) in required_option() 52 .get_matches_from_safe(&["test", "-a42", "-a24"]) in optional_option() 72 .get_matches_from_safe(&["test", "-a42", "-a24"]) in option_with_default() 92 .get_matches_from_safe(&["test", "-a42", "-a24"]) in option_with_raw_default() 175 .get_matches_from_safe(&["test", "-a42", "-a24"]) in optional_argument_for_optional_option()
|
D | non_literal_attributes.rs | 103 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--", "FILE"]); in test_multi_args_fail() 118 let result = Opt::clap().get_matches_from_safe(&["test", "-l", "1", "--x", "1"]); in test_bool() 144 .get_matches_from_safe(&["test", "-n", "gg"]) in test_parse_hex_function_path()
|
D | flatten.rs | 31 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in flatten() 33 .get_matches_from_safe(&["test", "42", "24"]) in flatten()
|
D | utils.rs | 31 .get_matches_from_safe(vec!["test", subcmd, "--help"]) in get_subcommand_long_help()
|
/external/rust/crates/clap/ |
D | clap-test.rs | 34 let res = l.get_matches_from_safe(args.split(' ').collect::<Vec<_>>()); in compare_output() 44 let res = l.get_matches_from_safe(args.split(' ').collect::<Vec<_>>()); in compare_output2()
|
/external/rust/crates/structopt/src/ |
D | lib.rs | 1133 Ok(Self::from_clap(&Self::clap().get_matches_from_safe(iter)?)) in from_iter_safe()
|
/external/rust/crates/clap/src/ |
D | lib.rs | 617 Self::try_from_argmatches(Self::into_app().get_matches_from_safe(argv)?) in try_parse_from()
|
/external/rust/crates/clap/src/app/ |
D | mod.rs | 1490 self.get_matches_from_safe(&mut env::args_os()) in get_matches_safe() 1571 pub fn get_matches_from_safe<I, T>(mut self, itr: I) -> ClapResult<ArgMatches<'a>> in get_matches_from_safe() method
|