Home
last modified time | relevance | path

Searched refs:get_matches_from (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/structopt/tests/
Doptions.rs20 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a42"])) in required_option()
24 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a", "42"])) in required_option()
28 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--arg", "42"])) in required_option()
45 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a42"])) in optional_option()
49 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in optional_option()
65 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a24"])) in option_with_default()
69 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in option_with_default()
85 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a24"])) in option_with_raw_default()
89 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in option_with_raw_default()
105 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a24"])) in options()
[all …]
Dflags.rs21 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in unique_flag()
25 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a"])) in unique_flag()
29 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--alice"])) in unique_flag()
55 Opt::from_clap(&Opt::clap().get_matches_from(&["test"])) in multiple_flag()
59 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a"])) in multiple_flag()
63 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a", "-a"])) in multiple_flag()
67 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a", "--alice", "-bb"])) in multiple_flag()
71 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-aaa", "--bob"])) in multiple_flag()
93 let falsey = Opt::from_clap(&Opt::clap().get_matches_from(&["test"])); in non_bool_flags()
97 let alice = Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-a"])); in non_bool_flags()
[all …]
Dargument_naming.rs12 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "command", "0"])) in test_single_word_enum_variant_is_default_renamed_into_kebab_case()
25 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "first-command", "0"])) in test_multi_word_enum_variant_is_renamed()
40 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_generates_kebab_case()
54 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_custom_long_overwrites_default_name()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo"])) in test_standalone_long_uses_previous_defined_custom_name()
82 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--foo-option"])) in test_standalone_long_ignores_afterwards_defined_custom_name()
97 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_generates_kebab_case()
111 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_custom_short_overwrites_default_name()
125 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-o"])) in test_standalone_short_uses_previous_defined_custom_name()
139 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-f"])) in test_standalone_short_ignores_afterwards_defined_custom_name()
[all …]
Dnon_literal_attributes.rs46 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1"])) in test_slice()
55 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--level", "1"])) in test_slice()
64 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--set-level", "1"])) in test_slice()
73 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--lvl", "1"])) in test_slice()
86 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "file"])) in test_multi_args()
96 &Opt::clap().get_matches_from(&["test", "-l", "1", "--values", "1", "--", "FILE"]), in test_multi_args()
116 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-l", "1", "--x=1"])) in test_bool()
136 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "5"])) in test_parse_hex_function_path()
140 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "abcdef"])) in test_parse_hex_function_path()
Dsubcommands.rs42 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "--all", "origin"])) in test_fetch()
50 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "fetch", "-f", "origin"])) in test_fetch()
61 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add", "-i", "-v"])) in test_add()
97 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test", "do-something", "blah"])) in test_hyphenated_subcommands()
112 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "add"])) in test_null_commands()
116 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "init"])) in test_null_commands()
120 Opt3::from_clap(&Opt3::clap().get_matches_from(&["test", "fetch"])) in test_null_commands()
150 Opt4::from_clap(&Opt4::clap().get_matches_from(&["test", "add", "f"])) in test_tuple_commands()
154 Opt4::from_clap(&Opt4::clap().get_matches_from(&["test", "init"])) in test_tuple_commands()
[all …]
Dnested-subcommands.rs48 Opt2::from_clap(&Opt2::clap().get_matches_from(&["test"])) in test_no_cmd()
60 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vvv", "fetch"])) in test_fetch()
68 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "--force", "fetch"])) in test_fetch()
80 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "add"])) in test_add()
88 Opt::from_clap(&Opt::clap().get_matches_from(&["test", "-vv", "add"])) in test_add()
139 &Opt3::clap().get_matches_from(&["test", "--all", "foo", "lib.rs", "quux"]) in test_subsubcommand()
Dcustom-string-parsers.rs47 PathOpt::from_clap(&PathOpt::clap().get_matches_from(&[ in test_path_opt_simple()
69 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "5"])) in test_parse_hex()
73 HexOpt::from_clap(&HexOpt::clap().get_matches_from(&["test", "-n", "abcdef"])) in test_parse_hex()
117 &NoOpOpt::clap().get_matches_from(&["test", "-a=?", "-b=?", "-c=?", "-d=?"]) in test_every_custom_parser()
146 DefaultedOpt::from_clap(&DefaultedOpt::clap().get_matches_from(&[ in test_parser_with_default_value()
193 Occurrences::from_clap(&Occurrences::clap().get_matches_from(&[ in test_parser_occurrences()
/external/rust/crates/structopt/src/
Dlib.rs1116 Self::from_clap(&Self::clap().get_matches_from(iter)) in from_iter()
/external/rust/crates/clap/src/
Dlib.rs603 Self::from_argmatches(Self::into_app().get_matches_from(argv)) in parse_from()
/external/rust/crates/clap/src/app/
Dmod.rs1460 self.get_matches_from(&mut env::args_os()) in get_matches()
1514 pub fn get_matches_from<I, T>(mut self, itr: I) -> ArgMatches<'a> in get_matches_from() method
/external/rust/crates/bindgen/src/
Doptions.rs513 .get_matches_from(args); in builder_from_flags()