Skip to content

Commit

Permalink
fix(AllowLeadingHyphen): fixes a bug where valid args aren't recogniz…
Browse files Browse the repository at this point in the history
…ed with this setting

Closes #588
  • Loading branch information
kbknapp committed Sep 13, 2016
1 parent 0dcfc77 commit a9699e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ impl<'a, 'b> Parser<'a, 'b>
name: sc_name,
matches: sc_m.into(),
});
} else {
} else if !self.settings.is_set(AppSettings::AllowLeadingHyphen) {
return Err(Error::unknown_argument(&*arg_os.to_string_lossy(),
"",
&*self.create_current_usage(matcher),
Expand Down

0 comments on commit a9699e4

Please sign in to comment.