Skip to content

Commit

Permalink
Merge pull request #5306 from epage/conflict
Browse files Browse the repository at this point in the history
fix(parser): Don't panic with conflicts and groups
  • Loading branch information
epage committed Jan 15, 2024
2 parents cbc9c9d + 50c59f6 commit d1d88ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_builder/src/parser/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ impl<'cmd> Parser<'cmd> {
arg_os.display().to_string(),
matcher
.arg_ids()
.map(|id| self.cmd.find(id).unwrap().to_string())
.filter_map(|id| self.cmd.find(id).map(|a| a.to_string()))
.collect(),
Usage::new(self.cmd).create_usage_with_title(&[]),
);
Expand Down

0 comments on commit d1d88ae

Please sign in to comment.