/external/rust/crates/structopt/tests/ |
D | options.rs | 20 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 …]
|
D | flags.rs | 21 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 …]
|
D | argument_naming.rs | 12 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 …]
|
D | non_literal_attributes.rs | 46 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() 95 Opt::from_clap( 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()
|
D | subcommands.rs | 42 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 …]
|
D | nested-subcommands.rs | 48 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() 138 Opt3::from_clap( in test_subsubcommand() 173 .map(|m| SubSubCmdWithOption::from_clap(&m)) in sub_sub_cmd_with_option()
|
D | custom-string-parsers.rs | 47 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() 116 NoOpOpt::from_clap( 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/ |
D | lib.rs | 1082 fn from_clap(matches: &clap::ArgMatches<'_>) -> Self; in from_clap() method 1090 Self::from_clap(&Self::clap().get_matches()) in from_args() 1102 .map(|matches| Self::from_clap(&matches)) in from_args_safe() 1116 Self::from_clap(&Self::clap().get_matches_from(iter)) in from_iter() 1133 Ok(Self::from_clap(&Self::clap().get_matches_from_safe(iter)?)) in from_iter_safe() 1161 fn from_clap(matches: &clap::ArgMatches<'_>) -> Self { in from_clap() method 1162 Box::new(<T as StructOpt>::from_clap(matches)) in from_clap()
|
/external/rust/crates/structopt-derive/src/ |
D | lib.rs | 287 #field_name: ::structopt::StructOpt::from_clap(#matches) in gen_constructor() 396 fn from_clap(matches: &::structopt::clap::ArgMatches) -> Self { in gen_from_clap() 564 fn from_clap(matches: &::structopt::clap::ArgMatches) -> Self { in gen_from_clap_enum() 688 quote!( ( <#ty as ::structopt::StructOpt>::from_clap(#matches) ) ) in gen_from_subcommand() 762 let from_clap = gen_from_clap(name, fields, &basic_clap_app_gen.attrs); in impl_structopt_for_struct() localVariable 783 #from_clap in impl_structopt_for_struct() 819 let from_clap = gen_from_clap_enum(name); in impl_structopt_for_enum() localVariable 839 #from_clap in impl_structopt_for_enum() 876 fn from_clap(_matches: &::structopt::clap::ArgMatches) -> Self { in impl_structopt()
|
/external/rust/crates/structopt/ |
D | CHANGELOG.md | 449 ### Change the signature of `Structopt::from_clap` to take its argument by reference by [@TeXitoi](… 451 …users will not be impacted by this change. If you are using `StructOpt::from_clap`, just add a `&`…
|