Home
last modified time | relevance | path

Searched refs:requires_if (Results 1 - 3 of 3) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
H A Drequire.rs117 .arg(Arg::new("flag").required(true).requires_if("val", "opt")) in positional_required_with_requires_if_no_value()
138 .arg(Arg::new("flag").required(true).requires_if("val", "opt")) in positional_required_with_requires_if_value()
536 .requires_if("my.cfg", "extra") in requires_if_present_val()
585 .requires_if("my.cfg", "extra") in requires_if_present_val_no_present_pass()
1250 .requires_if("val", "extra") in requires_if_invalid_arg()
1315 .requires_if("default", "flag"), in requires_if_with_default_value()
1322 "requires_if should ignore default_value: {:?}", in requires_if_with_default_value()
/third_party/rust/crates/clap/tests/derive/
H A Dnon_literal_attributes.rs40 #[arg(id = "FILE", requires_if("FILE", "values"))]
/third_party/rust/crates/clap/src/builder/
H A Darg.rs3373 /// .requires_if("val", "arg")
3377 /// Setting `Arg::requires_if(val, arg)` requires that the `arg` be used at runtime if the
3386 /// .requires_if("my.cfg", "other")
3396 /// Setting `Arg::requires_if(val, arg)` and setting the value to `val` but *not* supplying
3404 /// .requires_if("my.cfg", "input")
3418 pub fn requires_if(mut self, val: impl Into<ArgPredicate>, arg_id: impl Into<Id>) -> Self { in requires_if() functions

Completed in 7 milliseconds