Skip to content

Commit

Permalink
Merge pull request #4330 from epage/assert
Browse files Browse the repository at this point in the history
fix(parser): Allow defaults for Help/Version
  • Loading branch information
epage committed Oct 1, 2022
2 parents 5cd7461 + dd8e242 commit cc0da32
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/parser/parser.rs
Expand Up @@ -1274,7 +1274,6 @@ impl<'cmd> Parser<'cmd> {
Ok(ParseResult::ValuesDone)
}
ArgAction::Help => {
debug_assert_eq!(raw_vals, Vec::<OsString>::new());
let use_long = match ident {
Some(Identifier::Long) => true,
Some(Identifier::Short) => false,
Expand All @@ -1285,7 +1284,6 @@ impl<'cmd> Parser<'cmd> {
Err(self.help_err(use_long))
}
ArgAction::Version => {
debug_assert_eq!(raw_vals, Vec::<OsString>::new());
let use_long = match ident {
Some(Identifier::Long) => true,
Some(Identifier::Short) => false,
Expand Down

0 comments on commit cc0da32

Please sign in to comment.