We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc2846 commit 1823cefCopy full SHA for 1823cef
clap_builder/src/parser/parser.rs
@@ -483,7 +483,8 @@ impl<'cmd> Parser<'cmd> {
483
pos_sc_name.clone(),
484
matcher
485
.arg_ids()
486
- .map(|id| self.cmd.find(id).unwrap().to_string())
+ // skip groups
487
+ .filter_map(|id| self.cmd.find(id).map(|a| a.to_string()))
488
.collect(),
489
Usage::new(self.cmd).create_usage_with_title(&[]),
490
));
tests/builder/conflicts.rs
@@ -990,7 +990,6 @@ fn args_negate_subcommands_two_levels() {
990
}
991
992
#[test]
993
-#[should_panic]
994
fn group_conrflicts_with_subcommands() {
995
let c = Command::new("test")
996
.args_conflicts_with_subcommands(true)
0 commit comments