Home
last modified time | relevance | path

Searched refs:default_value_t (Results 1 – 12 of 12) sorted by relevance

/third_party/rust/crates/clap/tests/derive/
Ddeny_warnings.rs27 #[arg(value_parser = try_str, default_value_t)] in warning_never_struct()
43 #[arg(value_parser = try_str, default_value_t)] in warning_never_enum()
Ddefault_value.rs22 fn default_value_t() { in default_value_t() function
25 #[arg(default_value_t = 3)] in default_value_t()
39 #[arg(default_value_t)] in auto_default_value_t()
Dvalue_enum.rs57 #[arg(value_enum, default_value_t)] in default_value()
/third_party/rust/crates/clap/examples/
Dtyped-derive.rs31 default_value_t = 22,
40 default_value_t = foreign_crate::LogLevel::Info,
Ddemo.rs12 #[arg(short, long, default_value_t = 1)]
Dgit-derive.rs37 default_value_t = ColorWhen::Auto,
/third_party/rust/crates/clap/tests/derive_ui/
Ddefault_value_t_invalid.rs14 #[arg(default_value_t = -10)]
Dbool_value_enum.rs6 #[arg(short, value_enum, default_value_t)]
Ddefault_value_t_invalid.stderr4 14 | #[arg(default_value_t = -10)]
Dbool_value_enum.stderr4 6 | #[arg(short, value_enum, default_value_t)]
/third_party/rust/crates/clap/examples/tutorial_derive/
D03_05_default_values.rs6 #[arg(default_value_t = 2020)]
/third_party/rust/crates/clap/
DCHANGELOG.md363 dealing with owned data difficult, like `#[arg(default_value_t)]` generating a
1110 - Don't warn when using `default_value_t` derive attribute with a `Subcommand` (#3245)
1299 - `#[clap(default_value)]` is replaced with `#[clap(default_value_t)]` ([clap-rs/clap#1694](https:/…
1369 - Allow defaulting with native types via new `default_value_t [= <expr>]` attribute ([clap-rs/clap#…