Home
last modified time | relevance | path

Searched refs:get_num_args (Results 1 – 9 of 9) sorted by relevance

/third_party/rust/crates/clap/tests/
Dmacros.rs47 assert_eq!(arg.get_num_args(), None); in short()
55 assert_eq!(arg.get_num_args(), None); in short()
63 assert_eq!(arg.get_num_args(), None); in short()
71 assert_eq!(arg.get_num_args(), None); in short()
86 assert_eq!(arg.get_num_args(), None); in short_and_long()
95 assert_eq!(arg.get_num_args(), None); in short_and_long()
104 assert_eq!(arg.get_num_args(), None); in short_and_long()
113 assert_eq!(arg.get_num_args(), None); in short_and_long()
193 assert_eq!(arg.get_num_args(), None); in short_with_value()
201 assert_eq!(arg.get_num_args(), None); in short_with_value()
[all …]
/third_party/rust/crates/clap/clap_complete/src/generator/
Dutils.rs117 .filter(|a| !a.get_num_args().expect("built").takes_values() && !a.is_positional()) in flags()
124 if !a.get_num_args().expect("built").takes_values() { in possible_values()
/third_party/rust/crates/clap/clap_complete_fig/src/
Dfig.rs356 if !arg.get_num_args().expect("built").takes_values() { in gen_args()
371 let num_args = arg.get_num_args().expect("built"); in gen_args()
/third_party/rust/crates/clap/clap_complete/src/shells/
Dzsh.rs464 let vc = vc.repeat(o.get_num_args().expect("built").min_values());
628 let num_args = arg.get_num_args().expect("built");
Dfish.rs158 if !option.get_num_args().expect("built").takes_values() { in value_completion()
/third_party/rust/crates/clap/src/builder/
Darg.rs3846 pub fn get_num_args(&self) -> Option<ValueRange> { in get_num_args() method
3852 self.get_num_args().expect(INTERNAL_ERROR_MSG).min_values() in get_min_vals()
3940 self.get_num_args().unwrap_or_default().is_multiple() in is_multiple_values_set()
4193 let num_vals = self.get_num_args().unwrap_or_else(|| 1.into()); in render_arg_val()
Ddebug_asserts.rs604 && !p.get_num_args().expect(INTERNAL_ERROR_MSG).is_fixed() in _verify_positionals()
761 let num_vals = arg.get_num_args().expect(INTERNAL_ERROR_MSG); in assert_arg()
/third_party/rust/crates/clap/src/parser/
Darg_matcher.rs196 let expected = o.get_num_args().expect(INTERNAL_ERROR_MSG); in needs_more_vals()
Dparser.rs1309 let expected = arg.get_num_args().expect(INTERNAL_ERROR_MSG); in verify_num_args()