Searched refs:required_if (Results 1 – 5 of 5) sorted by relevance
/external/rust/crates/structopt/examples/ |
D | README.md | 72 ### [Required If](required_if.rs) 74 How to use `#[structopt(required_if)]`.
|
D | required_if.rs | 11 #[structopt(name = "FILE", required_if("out-type", "file"))]
|
/external/rust/crates/clap/src/args/ |
D | arg.rs | 114 "required_if" => yaml_tuple2!(a, v, required_if), in from_yaml() 115 "required_ifs" => yaml_tuple2!(a, v, required_if), in from_yaml() 1613 pub fn required_if(mut self, arg: &'a str, val: &'b str) -> Self { in required_if() method
|
/external/rust/crates/structopt/ |
D | CHANGELOG.md | 29 * Added [the new example](https://github.com/TeXitoi/structopt/blob/master/examples/required_if.rs).
|
/external/rust/crates/clap/ |
D | CHANGELOG.md | 714 * **Arg::required_if[s]:** adds the ability for an arg to be *conditionally* required (i.e. "arg X…
|