diff --git a/src/parser/arg_matcher.rs b/src/parser/arg_matcher.rs index 1b04087f0d8..93bac7e1734 100644 --- a/src/parser/arg_matcher.rs +++ b/src/parser/arg_matcher.rs @@ -152,14 +152,6 @@ impl ArgMatcher { ma.new_val_group(); } - pub(crate) fn start_occurrence_of_arg(&mut self, arg: &Arg) { - self.start_custom_arg(arg, ValueSource::CommandLine); - } - - pub(crate) fn start_occurrence_of_group(&mut self, id: Id) { - self.start_custom_group(id, ValueSource::CommandLine); - } - pub(crate) fn start_occurrence_of_external(&mut self, cmd: &crate::Command) { let id = Id::from_static_ref(Id::EXTERNAL); debug!("ArgMatcher::start_occurrence_of_external: id={:?}", id,); diff --git a/src/parser/parser.rs b/src/parser/parser.rs index dec42b77a2b..818ca95c98e 100644 --- a/src/parser/parser.rs +++ b/src/parser/parser.rs @@ -1509,10 +1509,10 @@ impl<'cmd> Parser<'cmd> { // With each new occurrence, remove overrides from prior occurrences self.remove_overrides(arg, matcher); - matcher.start_occurrence_of_arg(arg); + matcher.start_custom_arg(arg, ValueSource::CommandLine); // Increment or create the group "args" for group in self.cmd.groups_for_arg(arg.get_id()) { - matcher.start_occurrence_of_group(group); + matcher.start_custom_group(group, ValueSource::CommandLine); } } }