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

Parser option to limit split parts to max arity #363

Closed
remkop opened this issue Apr 17, 2018 · 0 comments
Closed

Parser option to limit split parts to max arity #363

remkop opened this issue Apr 17, 2018 · 0 comments

Comments

@remkop
Copy link
Owner

remkop commented Apr 17, 2018

Related to #258 and #362:

This parser option should make the below test pass:

def cli = new CliBuilder()
cli.b(args: 2, valueSeparator: ',', 'arguments')
options = cli.parse(['-b1,2,3'])

assert options.bs == ['1', '2']
       |       |  |
       |       |  false
       |       ['1', '2,3']
       groovy.util.OptionAccessor@ba2f4ec
@remkop remkop added this to the 3.0 milestone Apr 17, 2018
remkop added a commit that referenced this issue Apr 18, 2018
…n splitting to max arity, for compatibility with commons-cli.
@remkop remkop changed the title Parser option to stop splitting when max arity reached Parser option to limit parts when splitting to max arity Apr 18, 2018
@remkop remkop changed the title Parser option to limit parts when splitting to max arity Parser option to limit split parts to max arity Apr 18, 2018
@remkop remkop closed this as completed Apr 18, 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