Lines Matching defs:group
300 /// By placing them in a logical group, you can build easier requirement and exclusion rules.
304 /// one) argument from that group must be present at runtime.
306 /// Meaning any of the arguments that belong to that group will cause a failure if present with
309 /// - Extract a value from a group instead of determining exactly which argument was used.
314 /// of the arguments from the specified group is present at runtime.
323 /// .group(ArgGroup::new("vers")
330 pub fn group(mut self, group: impl Into<ArgGroup>) -> Self {
331 self.groups.push(group.into());
360 self = self.group(g.into());
3488 } else if let Some(group) = self.find_group(id) {
3490 self.unroll_args_in_group(&group.id)
4470 for group in &self.groups {
4471 if group.required {
4472 let idx = reqs.insert(group.id.clone());
4473 for a in &group.requires {
4482 pub(crate) fn unroll_args_in_group(&self, group: &Id) -> Vec<Id> {
4483 debug!("Command::unroll_args_in_group: group={:?}", group);
4484 let mut g_vec = vec![group];
4502 debug!("Command::unroll_args_in_group:iter: this is a group");