Skip to content

Parser option to limit split parts to max arity  #363

@remkop

Description

@remkop

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions