A small patch release that fixes a parsing bug where variadic arguments and flags with declared choices were not being validated. Previously, any value was silently accepted for variadic (var=#true) args and flags, even when a choices constraint was specified. Non-variadic args and flags were unaffected and already validated correctly.
Fixed
- Variadic args and flags with
choicesnow correctly reject invalid values at parse time, matching the existing behavior for non-variadic args and flags. For example, given a spec likearg "<level>" var=#true { choices "debug" "info" "warn" "error" }, passing an invalid value such as"invalid"now produces a clear error message instead of being silently accepted. (#520 by @jdx, fixes jdx/mise#8334)
Full Changelog: v2.18.0...v2.18.1