fix(builder): Allow custom flag definitions

The goal is to allow getting the position of repeated flags for #5287
This commit is contained in:
Ed Page 2024-01-08 09:49:43 -06:00
parent d53d881e33
commit 148e102ac3

View file

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