Remove unreachable branch in use_long_arg()

This commit is contained in:
Donough Liu 2020-11-08 15:19:58 +08:00
parent 7aa2358d6e
commit 3c2f60c9f3

View file

@ -1178,8 +1178,6 @@ impl<'help, 'app> Parser<'help, 'app> {
return Ok(ParseResult::FlagSubCommand(sc_name.to_string()));
} else if self.is_set(AS::AllowLeadingHyphen) {
return Ok(ParseResult::MaybeHyphenValue);
} else if self.is_set(AS::ValidNegNumFound) {
return Ok(ParseResult::MaybeNegNum);
}
debug!("Parser::parse_long_arg: Didn't match anything");