Kotlin/kotlinx-cli

Add support for vararg options

Closed this issue · 1 comments

Many tools make good use of the ability to pass multiple options for execution. E.g., I'd like to pass/override certain properties in my application:

./app -p foo=42 -p "bar=uh, sounds like fun" -p baz=false

For this I'd expect at least the option to do:

val parameters by parser.option(ArgType.String, "property", "p", "property to override")
        .varargs

And shortly after I find that I overlooked multiple(), but perhaps a request for more consistent naming and perhaps in the long run better documentation ;)