fix(parser): Assert on unknown args when using external subcommands (unstable)

This commit is contained in:
Ed Page 2022-05-06 15:49:33 -05:00
parent 65538e21a8
commit eb155786bb

View file

@ -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()
})
}