Skip to content

Commit

Permalink
fix(builder): Allow custom flag definitions
Browse files Browse the repository at this point in the history
The goal is to allow getting the position of repeated flags for #5287
  • Loading branch information
epage committed Jan 8, 2024
1 parent d53d881 commit 148e102
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions clap_builder/src/builder/debug_asserts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -774,13 +774,6 @@ fn assert_arg(arg: &Arg) {
}
}

assert_eq!(
num_vals.takes_values(),
arg.is_takes_value_set(),
"Argument {}: mismatch between `num_args` ({}) and `takes_value`",
arg.get_id(),
num_vals,
);
assert_eq!(
num_vals.is_multiple(),
arg.is_multiple_values_set(),
Expand Down

0 comments on commit 148e102

Please sign in to comment.