Searched refs:get_num_args (Results 1 – 9 of 9) sorted by relevance
/third_party/rust/crates/clap/tests/ |
D | macros.rs | 47 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/ |
D | utils.rs | 117 .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/ |
D | fig.rs | 356 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/ |
D | zsh.rs | 464 let vc = vc.repeat(o.get_num_args().expect("built").min_values()); 628 let num_args = arg.get_num_args().expect("built");
|
D | fish.rs | 158 if !option.get_num_args().expect("built").takes_values() { in value_completion()
|
/third_party/rust/crates/clap/src/builder/ |
D | arg.rs | 3846 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()
|
D | debug_asserts.rs | 604 && !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/ |
D | arg_matcher.rs | 196 let expected = o.get_num_args().expect(INTERNAL_ERROR_MSG); in needs_more_vals()
|
D | parser.rs | 1309 let expected = arg.get_num_args().expect(INTERNAL_ERROR_MSG); in verify_num_args()
|