mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
fix(builder): Allow custom flag definitions
The goal is to allow getting the position of repeated flags for #5287
This commit is contained in:
parent
d53d881e33
commit
148e102ac3
1 changed files with 0 additions and 7 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue