Home
last modified time | relevance | path

Searched refs:requires_if (Results 1 – 4 of 4) sorted by relevance

/third_party/rust/crates/clap/tests/builder/
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()
/third_party/rust/crates/clap/tests/derive/
Dnon_literal_attributes.rs40 #[arg(id = "FILE", requires_if("FILE", "values"))]
/third_party/rust/crates/clap/src/builder/
Darg.rs3417 pub fn requires_if(mut self, val: impl Into<ArgPredicate>, arg_id: impl Into<Id>) -> Self { in requires_if() method
/third_party/rust/crates/clap/
DCHANGELOG.md2089 * **Arg::requires_if[s]:** adds the ability to *conditionally* require additional args (such as if…