Lines Matching refs:ArgGroup
19 use crate::builder::{Arg, ArgGroup, ArgPredicate};
102 groups: Vec<ArgGroup>,
297 /// Adds an [`ArgGroup`] to the application.
299 /// [`ArgGroup`]s are a family of related arguments.
303 /// - Make an entire [`ArgGroup`] required, meaning that one (and *only*
305 /// - Name an [`ArgGroup`] as a conflict to another argument.
313 /// The following example demonstrates using an [`ArgGroup`] to ensure that one, and only one,
317 /// # use clap::{Command, arg, ArgGroup};
323 /// .group(ArgGroup::new("vers")
330 pub fn group(mut self, group: impl Into<ArgGroup>) -> Self {
335 /// Adds multiple [`ArgGroup`]s to the [`Command`] at once.
340 /// # use clap::{Command, arg, ArgGroup};
349 /// ArgGroup::new("vers")
352 /// ArgGroup::new("input")
358 pub fn groups(mut self, groups: impl IntoIterator<Item = impl Into<ArgGroup>>) -> Self {
3448 pub fn get_groups(&self) -> impl Iterator<Item = &ArgGroup> {
3869 let mut ag = ArgGroup::new(g);
4158 fn two_groups_of<F>(&self, condition: F) -> Option<(&ArgGroup, &ArgGroup)>
4160 F: Fn(&ArgGroup) -> bool,
4451 pub(crate) fn find_group(&self, group_id: &Id) -> Option<&ArgGroup> {