mirror of
https://github.com/clap-rs/clap
synced 2024-11-15 09:07:10 +00:00
fix(parser): Assert on unknown args when using external subcommands (unstable)
This commit is contained in:
parent
65538e21a8
commit
eb155786bb
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue