Lines Matching refs:ArgAction
6 use clap::ArgAction;
11 let cmd = Command::new("test").arg(Arg::new("mammal").long("mammal").action(ArgAction::Set)); in set()
44 let cmd = Command::new("test").arg(Arg::new("mammal").long("mammal").action(ArgAction::Append)); in append()
84 Command::new("test").arg(Arg::new("mammal").long("mammal").action(ArgAction::SetTrue)); in set_true()
120 .action(ArgAction::SetTrue) in set_true_with_explicit_default_value()
144 .action(ArgAction::SetTrue) in set_true_with_default_value_if_present()
147 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_default_value_if_present()
171 .action(ArgAction::SetTrue) in set_true_with_default_value_if_value()
174 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_default_value_if_value()
198 .action(ArgAction::SetTrue) in set_true_with_required_if_eq()
201 .arg(Arg::new("dog").long("dog").action(ArgAction::SetTrue)); in set_true_with_required_if_eq()
227 .action(ArgAction::SetFalse), in set_false()
264 .action(ArgAction::SetFalse) in set_false_with_explicit_default_value()
288 .action(ArgAction::SetFalse) in set_false_with_default_value_if_present()
291 .arg(Arg::new("dog").long("dog").action(ArgAction::SetFalse)); in set_false_with_default_value_if_present()
315 .action(ArgAction::SetFalse) in set_false_with_default_value_if_value()
318 .arg(Arg::new("dog").long("dog").action(ArgAction::SetFalse)); in set_false_with_default_value_if_value()
338 let cmd = Command::new("test").arg(Arg::new("mammal").long("mammal").action(ArgAction::Count)); in count()
367 .action(ArgAction::Count) in count_with_explicit_default_value()
391 .action(ArgAction::Count) in count_with_default_value_if_present()
394 .arg(Arg::new("dog").long("dog").action(ArgAction::Count)); in count_with_default_value_if_present()
418 .action(ArgAction::Count) in count_with_default_value_if_value()
421 .arg(Arg::new("dog").long("dog").action(ArgAction::Count)); in count_with_default_value_if_value()