-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
A-builderArea: Builder APIArea: Builder APIC-bugCategory: bugCategory: bugE-easyCall for participation: Experience needed to fix: Easy / not muchCall for participation: Experience needed to fix: Easy / not muchM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.
Milestone
Description
The following should panic in a debug assert but doesn't. It should mirror the asserts for duplicate flags
#!/usr/bin/env -S rust-script --debug
//! ```cargo
//! [dependencies]
//! clap = { path = "../clap", features = ["env", "derive"] }
//! ```
fn main() {
let mut cmd = clap::Command::new("myprog")
.subcommand(clap::Command::new("foo"))
.subcommand(clap::Command::new("bar").alias("foo"));
cmd.build();
}
Metadata
Metadata
Assignees
Labels
A-builderArea: Builder APIArea: Builder APIC-bugCategory: bugCategory: bugE-easyCall for participation: Experience needed to fix: Easy / not muchCall for participation: Experience needed to fix: Easy / not muchM-breaking-changeMeta: Implementing or merging this will introduce a breaking change.Meta: Implementing or merging this will introduce a breaking change.