Searched refs:default_value_if (Results 1 – 4 of 4) sorted by relevance
/third_party/rust/crates/clap/tests/builder/ |
D | default_vals.rs | 188 .arg(arg!([arg] "some arg").default_value_if( in default_if_arg_present_no_default() 207 .arg(arg!([arg] "some arg").default_value_if( in default_if_arg_present_no_default_user_override() 229 .default_value_if("opt", ArgPredicate::IsPresent, Some("default")), in default_if_arg_present_no_arg_with_default() 248 .default_value_if("opt", ArgPredicate::IsPresent, Some("default")), in default_if_arg_present_with_default() 267 .default_value_if("opt", ArgPredicate::IsPresent, Some("default")), in default_if_arg_present_with_default_user_override() 286 .default_value_if("opt", ArgPredicate::IsPresent, Some("default")), in default_if_arg_present_no_arg_with_default_user_override() 304 .arg(arg!([arg] "some arg").default_value_if("opt", "value", Some("default"))) in default_if_arg_present_with_value_no_default() 319 .arg(arg!([arg] "some arg").default_value_if("opt", "value", Some("default"))) in default_if_arg_present_with_value_no_default_fail() 331 .arg(arg!([arg] "some arg").default_value_if("opt", "some", Some("default"))) in default_if_arg_present_with_value_no_default_user_override() 349 .default_value_if("opt", "some", Some("default")), in default_if_arg_present_with_value_no_arg_with_default() [all …]
|
D | action.rs | 145 .default_value_if("dog", ArgPredicate::IsPresent, Some("true")), in set_true_with_default_value_if_present() 172 .default_value_if("dog", "true", Some("true")), in set_true_with_default_value_if_value() 289 .default_value_if("dog", ArgPredicate::IsPresent, Some("false")), in set_false_with_default_value_if_present() 316 .default_value_if("dog", "false", Some("false")), in set_false_with_default_value_if_value() 392 .default_value_if("dog", ArgPredicate::IsPresent, Some("10")), in count_with_default_value_if_present() 419 .default_value_if("dog", "2", Some("10")), in count_with_default_value_if_value()
|
/third_party/rust/crates/clap/src/builder/ |
D | arg.rs | 2750 pub fn default_value_if( in default_value_if() method 2776 self.default_value_if(arg_id, predicate, default) in default_value_if_os() 2872 self = self.default_value_if(arg, predicate, default); in default_value_ifs()
|
/third_party/rust/crates/clap/ |
D | CHANGELOG.md | 1343 - `Arg::default_value_if`, `Arg::default_value_if_os`, `Arg::default_value_ifs`, 1410 - `Arg::default_value_if`, `Arg::default_value_if_os`, `Arg::default_value_ifs`, 2046 * provides `default_value_os` and `default_value_if[s]_os` ([0f2a3782](https://github.com/clap-rs… 2147 * **Arg::default_value_if[s]:** adds new methods for *conditional* default values (such as a parti…
|