Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should throw MaxElementsExceededException when multi-valued option max arity exceeded #172

Closed
remkop opened this issue Aug 18, 2017 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Aug 18, 2017

Current (0.9.8) behavior is wrong: when processing split values, values exceeding max arity are pushed back onto the stack and are likely interpreted as positional parameters.

Instead, a MaxElementsExceededException should be thrown when the arity of a List or Map option has an upper bound, and the user specifies more values than the max.

@remkop remkop added this to the 1.0.0 milestone Aug 18, 2017
@remkop remkop changed the title WARN when multi-valued option max arity exceeded Should throw UnmatchedParamEx when multi-valued option max arity exceeded Aug 19, 2017
@remkop remkop changed the title Should throw UnmatchedParamEx when multi-valued option max arity exceeded Should throw MaxElementsExceededException when multi-valued option max arity exceeded Aug 19, 2017
@remkop remkop closed this as completed in 7dbe510 Aug 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant