Lines Matching refs:second
88 if let Some((first, second)) = cmd.two_args_of(|x| x.get_id() == arg.get_id()) {
93 duplicate_tip(cmd, first, second),
99 if let Some((first, second)) = cmd.two_args_of(|x| x.get_long() == Some(l)) {
106 second.get_id(),
107 duplicate_tip(cmd, first, second)
114 if let Some((first, second)) = cmd.two_args_of(|x| x.get_short() == Some(s)) {
121 second.get_id(),
122 duplicate_tip(cmd, first, second),
129 if let Some((first, second)) =
139 second.get_id()
369 fn duplicate_tip(cmd: &Command, first: &Arg, second: &Arg) -> &'static str {
371 && (first.get_id() == Id::HELP || second.get_id() == Id::HELP)
375 && (first.get_id() == Id::VERSION || second.get_id() == Id::VERSION)
558 // the one before it (second to last) has one of these:
569 // Or the second to last has a terminator or .last(true) set
580 // We make sure if the second to last is Multiple the last is ArgSettings::Last
584 "Only the last positional argument, or second to last positional \
604 command, unless the second one also has .last(true) set"