File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1503,11 +1503,6 @@ impl<'cmd> Parser<'cmd> {
15031503 matcher. start_custom_group ( group, source) ;
15041504 }
15051505 }
1506-
1507- /// Increase occurrence of specific argument and the grouped arg it's in.
1508- fn start_occurrence_of_arg ( & self , matcher : & mut ArgMatcher , arg : & Arg ) {
1509- self . start_custom_arg ( matcher, arg, ValueSource :: CommandLine ) ;
1510- }
15111506}
15121507
15131508// Error, Help, and Version Methods
@@ -1542,7 +1537,7 @@ impl<'cmd> Parser<'cmd> {
15421537 // Add the arg to the matches to build a proper usage string
15431538 if let Some ( ( name, _) ) = did_you_mean. as_ref ( ) {
15441539 if let Some ( arg) = self . cmd . get_keymap ( ) . get ( & name. as_ref ( ) ) {
1545- self . start_occurrence_of_arg ( matcher, arg) ;
1540+ self . start_custom_arg ( matcher, arg, ValueSource :: CommandLine ) ;
15461541 }
15471542 }
15481543
You can’t perform that action at this time.
0 commit comments