Lines Matching refs:names

292     pub fn aliases(mut self, names: impl IntoIterator<Item = impl Into<Str>>) -> Self {
294 .extend(names.into_iter().map(|x| (x.into(), false)));
320 pub fn short_aliases(mut self, names: impl IntoIterator<Item = char>) -> Self {
321 for s in names {
406 pub fn visible_aliases(mut self, names: impl IntoIterator<Item = impl Into<Str>>) -> Self {
408 .extend(names.into_iter().map(|n| (n.into(), true)));
431 pub fn visible_short_aliases(mut self, names: impl IntoIterator<Item = char>) -> Self {
432 for n in names {
1167 /// These names are cosmetic only, used for help and usage strings only. The names are **not**
1169 /// if you specify two names `one` and `two` `one` will be the first matched value, `two` will
1177 /// multiple value names in order to not throw off the help text alignment of all options.
1219 pub fn value_names(mut self, names: impl IntoIterator<Item = impl Into<Str>>) -> Self {
1220 self.val_names = names.into_iter().map(|s| s.into()).collect();
2184 /// This can also be helpful for arguments with very long flag names, or many/long value names.
2598 /// The names of [`ArgGroup`]'s the argument belongs to.
2963 /// * supplies *all* of the `names` arguments.
2978 /// because *all* of the `names` args have been supplied.
3000 /// Setting [`Arg::required_unless_present_all(names)`] and *not* supplying
3025 /// [`Arg::required_unless_present_all(names)`]: Arg::required_unless_present_all()
3029 names: impl IntoIterator<Item = impl Into<Id>>,
3031 self.r_unless_all.extend(names.into_iter().map(Into::into));
3053 /// Setting [`Arg::required_unless_present_any(names)`] requires that the argument be used at runtime
3054 /// *unless* *at least one of* the args in `names` are present. In the following example, the
3078 /// Setting [`Arg::required_unless_present_any(names)`] and *not* supplying *at least one of* `names`
3102 /// [`Arg::required_unless_present_any(names)`]: Arg::required_unless_present_any()
3107 names: impl IntoIterator<Item = impl Into<Id>>,
3109 self.r_unless.extend(names.into_iter().map(Into::into));
3521 /// **NOTE:** [`Arg::conflicts_with_all(names)`] allows specifying an argument which conflicts with more than one argument.
3556 /// [`Arg::conflicts_with_all(names)`]: Arg::conflicts_with_all()
3613 pub fn conflicts_with_all(mut self, names: impl IntoIterator<Item = impl Into<Id>>) -> Self {
3614 self.blacklist.extend(names.into_iter().map(Into::into));
3689 pub fn overrides_with_all(mut self, names: impl IntoIterator<Item = impl Into<Id>>) -> Self {
3690 self.overrides.extend(names.into_iter().map(Into::into));
3822 /// Get the names of possible values for this argument. Only useful for user
3835 /// Get the names of values for this argument.