Closed Lildirt closed 2 years ago
While we are at it, is this documentation correct? array<string> {regex, [startFrom], [type] | regex, [startFrom], types}
Looking at the code, I think that the actual type is array<string> {regex, [startFrom], [types]
instead, where types
is an array or a single type (read through ArgumentValidation.getEnumSet
).
Hmm, I think it's correct? We have 6 allowed permutations:
Expanding out the signature permutations, we get:
So looks like it lines up to me?
I'm going to go ahead and merge this, since this is definitely wrong, but if there's something I'm missing, we can always iterate more.
tested using 3 args, seems to work fine.