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

Add parser option to verify arity after split #362

Closed
remkop opened this issue Apr 16, 2018 · 1 comment
Closed

Add parser option to verify arity after split #362

remkop opened this issue Apr 16, 2018 · 1 comment

Comments

@remkop
Copy link
Owner

remkop commented Apr 16, 2018

Related to #258.

Currently picocli gives error for this:

def cli = new CliBuilder()
cli.a(args: 2, valueSeparator: ',' as char, 'arguments')
def options = cli.parse(['-a', '1,2'])

Gives error "error: option '--arg' at index 0 (PARAM) requires at least 2 values, but only 1 were specified: [1,2]"

Add option to split first before verifying arity.

@remkop remkop changed the title Add lar Add parser option to verify arity after split Apr 16, 2018
@remkop remkop added this to the 3.0 milestone Apr 16, 2018
@remkop
Copy link
Owner Author

remkop commented Apr 17, 2018

Closing: will not provide explicit API for this, but semantics will be included in #363 ParserSpec.limitSplit.

@remkop remkop closed this as completed Apr 17, 2018
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