Home
last modified time | relevance | path

Searched refs:required_if (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/structopt/examples/
DREADME.md72 ### [Required If](required_if.rs)
74 How to use `#[structopt(required_if)]`.
Drequired_if.rs11 #[structopt(name = "FILE", required_if("out-type", "file"))]
/external/rust/crates/clap/src/args/
Darg.rs114 "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/
DCHANGELOG.md29 * Added [the new example](https://github.com/TeXitoi/structopt/blob/master/examples/required_if.rs).
/external/rust/crates/clap/
DCHANGELOG.md714 * **Arg::required_if[s]:** adds the ability for an arg to be *conditionally* required (i.e. "arg X…