Home
last modified time | relevance | path

Searched refs:get_matches_from_safe (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/structopt/tests/
Dissues.rs27 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()
Dnested-subcommands.rs39 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()
Dflags.rs31 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()
Darguments.rs19 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()
Dcustom-string-parsers.rs77 .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()
Dsubcommands.rs74 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()
Doptions.rs30 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()
Dnon_literal_attributes.rs103 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()
Dflatten.rs31 assert!(Opt::clap().get_matches_from_safe(&["test"]).is_err()); in flatten()
33 .get_matches_from_safe(&["test", "42", "24"]) in flatten()
Dutils.rs31 .get_matches_from_safe(vec!["test", subcmd, "--help"]) in get_subcommand_long_help()
/external/rust/crates/clap/
Dclap-test.rs34 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/
Dlib.rs1133 Ok(Self::from_clap(&Self::clap().get_matches_from_safe(iter)?)) in from_iter_safe()
/external/rust/crates/clap/src/
Dlib.rs617 Self::try_from_argmatches(Self::into_app().get_matches_from_safe(argv)?) in try_parse_from()
/external/rust/crates/clap/src/app/
Dmod.rs1490 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