Skip to content

Commit

Permalink
fix(parser): Process overrides with new Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 8, 2022
1 parent 55a705c commit 1abc945
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,10 @@ impl<'help, 'cmd> Parser<'help, 'cmd> {
}

fn start_custom_arg(&self, matcher: &mut ArgMatcher, arg: &Arg<'help>, source: ValueSource) {
if source == ValueSource::CommandLine {
// With each new occurrence, remove overrides from prior occurrences
self.remove_overrides(arg, matcher);
}
matcher.start_custom_arg(arg, source);
for group in self.cmd.groups_for_arg(&arg.id) {
matcher.start_custom_group(&group, source);
Expand Down

0 comments on commit 1abc945

Please sign in to comment.