Home
last modified time | relevance | path

Searched refs:default_values_t (Results 1 – 5 of 5) sorted by relevance

/third_party/rust/crates/clap/tests/derive/
Ddefault_value.rs50 fn default_values_t() { in default_values_t() function
53 #[arg(default_values_t = vec![1, 2, 3])] in default_values_t()
56 #[arg(long, default_values_t = [4, 5, 6])] in default_values_t()
59 #[arg(long, default_values_t = [7, 8, 9])] in default_values_t()
62 #[arg(long, default_values_t = 10..=12)] in default_values_t()
65 #[arg(long, default_values_t = vec!["hello".to_string(), "world".to_string()])] in default_values_t()
68 #[arg(long, default_values_t = &vec!["foo".to_string(), "bar".to_string()])] in default_values_t()
Dvalue_enum.rs91 #[arg(value_enum, default_values_t = vec![ArgChoice::Foo, ArgChoice::Bar])] in vec_for_default_values_t()
97 default_values_t = clap::ValueEnum::value_variants() in vec_for_default_values_t()
/third_party/rust/crates/clap/tests/derive_ui/
Ddefault_values_t_invalid.stderr1 error: #[arg(default_values_t)] can be used only on Vec types
7 6 | #[arg(default_values_t = [1, 2, 3])]
Ddefault_values_t_invalid.rs6 #[arg(default_values_t = [1, 2, 3])]
/third_party/rust/crates/clap/
DCHANGELOG.md619 - *(derive)* New `default_values_t` and `default_values_os_t` attributes