Skip to content

Commit

Permalink
fix(assert): Verify required_unless_present_all exist
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 6, 2022
1 parent 122b4b4 commit 3d7ee2e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/build/debug_asserts.rs
Expand Up @@ -184,6 +184,16 @@ pub(crate) fn assert_app(cmd: &Command) {
);
}

for req in &arg.r_unless_all {
assert!(
cmd.id_exists(req),
"Command {}: Argument or group '{:?}' specified in 'required_unless*' for '{}' does not exist",
cmd.get_name(),
req,
arg.name,
);
}

// blacklist
for req in &arg.blacklist {
assert!(
Expand Down

0 comments on commit 3d7ee2e

Please sign in to comment.