Home
last modified time | relevance | path

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

/external/rust/crates/clap/
Dclap-test.rs65 .arg(Arg::from_usage("-f --flag... 'tests flags'") in complex_app()
68 …Arg::from_usage("[flag2] -F 'tests flags with exclusions'").conflicts_with("flag").requires("long-… in complex_app()
69 …Arg::from_usage("--long-option-2 [option2] 'tests long options with exclusions'").conflicts_with("… in complex_app()
70 Arg::from_usage("[positional2] 'tests positionals with exclusions'"), in complex_app()
71 … Arg::from_usage("-O --Option [option3] 'specific vals'").possible_values(&opt3_vals), in complex_app()
72 … Arg::from_usage("[positional3]... 'tests specific values'").possible_values(&pos3_vals), in complex_app()
73 Arg::from_usage("--multvals [one] [two] 'Tests multiple values, not mult occs'"), in complex_app()
74 … Arg::from_usage("--multvalsmo... [one] [two] 'Tests multiple values, and mult occs'"), in complex_app()
75 Arg::from_usage("--minvals2 [minvals]... 'Tests 2 min vals'").min_values(2), in complex_app()
76 Arg::from_usage("--maxvals3 [maxvals]... 'Tests 3 max vals'").max_values(3) in complex_app()
DCHANGELOG.md2448 * **from_usage** adds ability to add value names or num of vals in usage string ([3d581976](https:…
2466 * **from_usage** explains new usage strings with multiple values ([05476fc6](https://github.com/kb…
2480 * **from_usage** adds ability to add value names or num of vals in usage string ([ad55748c](https:…
2489 * **from_usage** explains new usage strings with multiple values ([5a3a42df](https://github.com/kb…
2554 * **from_usage** removes bug where usage strings have no help text ([ad4e5451](https://github.com/…
2573 * **from_usage** removes bug where usage strings have no help text ([ad4e5451](https://github.com/…
2598 * **from_usage** fix bug causing args to not be required ([b76129e9](https://github.com/kbknapp/cl…
2612 * **from_usage** tabs and spaces should be treated equally ([4fd44181](https://github.com/kbknapp/…
2670 * **from_usage** trim all whitespace before parsing ([91d29045](https://github.com/kbknapp/clap-rs…
/external/rust/crates/clap/src/
Dusage_parser.rs40 pub fn from_usage(usage: &'a str) -> Self { in from_usage() method
240 let a = Arg::from_usage("[flag] -f 'some help info'"); in create_flag_usage()
249 let b = Arg::from_usage("[flag] --flag 'some help info'"); in create_flag_usage()
258 let b = Arg::from_usage("--flag 'some help info'"); in create_flag_usage()
267 let c = Arg::from_usage("[flag] -f --flag 'some help info'"); in create_flag_usage()
276 let d = Arg::from_usage("[flag] -f... 'some help info'"); in create_flag_usage()
285 let e = Arg::from_usage("[flag] -f --flag... 'some help info'"); in create_flag_usage()
294 let e = Arg::from_usage("-f --flag... 'some help info'"); in create_flag_usage()
303 let e = Arg::from_usage("--flags"); in create_flag_usage()
309 let e = Arg::from_usage("--flags..."); in create_flag_usage()
[all …]
/external/rust/crates/clap/src/app/
Dmod.rs837 self.p.add_arg(Arg::from_usage(usage)); in arg_from_usage()
869 self.p.add_arg(Arg::from_usage(l)); in args_from_usage()
/external/rust/crates/clap/src/args/
Darg.rs295 pub fn from_usage(u: &'a str) -> Self { in from_usage() method
296 let parser = UsageParser::from_usage(u); in from_usage()