Skip to content

Commit

Permalink
fix(parser): Assert on unknown args when using external subcommands (…
Browse files Browse the repository at this point in the history
…unstable)
  • Loading branch information
epage committed May 6, 2022
1 parent 65538e2 commit eb15578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/parse/arg_matcher.rs
Expand Up @@ -30,7 +30,11 @@ impl ArgMatcher {
//
// See clap-rs/clap#3263
#[cfg(debug_assertions)]
#[cfg(not(feature = "unstable-v4"))]
disable_asserts: _cmd.is_allow_external_subcommands_set(),
#[cfg(debug_assertions)]
#[cfg(feature = "unstable-v4")]
disable_asserts: false,
..Default::default()
})
}
Expand Down

0 comments on commit eb15578

Please sign in to comment.