Lines Matching defs:requires

64     pub(crate) requires: Vec<(ArgPredicate, Id)>,
505 /// **NOTE:** Setting this requires [`Arg::num_args(..)`].
544 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
563 /// and requires that the `--` syntax be used to access it early.
634 /// Setting required requires that the argument be used at runtime.
687 /// .requires("input")
691 /// Setting [`Arg::requires(name)`] requires that the argument be used at runtime if the
700 /// .requires("input")
710 /// Setting [`Arg::requires(name)`] and *not* supplying that argument is an error.
717 /// .requires("input")
727 /// [`Arg::requires(name)`]: Arg::requires()
731 pub fn requires(mut self, arg_id: impl IntoResettable<Id>) -> Self {
733 self.requires.push((ArgPredicate::IsPresent, arg_id));
735 self.requires.clear();
1267 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
1324 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
1384 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
1412 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
1416 /// Setting `require_equals` requires that the option have an equals sign between
1563 /// It is worth noting that setting this requires all values to come after a `--` to indicate
1696 /// **NOTE:** using this configuration option requires the use of the
2281 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
2313 /// **NOTE:** Setting this requires [taking values][Arg::num_args]
3053 /// Setting [`Arg::required_unless_present_any(names)`] requires that the argument be used at runtime
3189 /// [`Arg::requires(name)`]: Arg::requires()
3268 /// [`Arg::requires(name)`]: Arg::requires()
3377 /// Setting `Arg::requires_if(val, arg)` requires that the `arg` be used at runtime if the
3414 /// [`Arg::requires(name)`]: Arg::requires()
3419 self.requires.push((val.into(), arg_id.into()));
3440 /// Setting `Arg::requires_ifs(["val", "arg"])` requires that the `arg` be used at runtime if the
3490 /// [`Arg::requires(name)`]: Arg::requires()
3498 self.requires
4291 .field("requires", &self.requires)