getOptionValues

abstract fun getOptionValues(name: String): List<String>

Return the collection of values associated with the arguments option having the given name.

  • if the option is present and has no argument (e.g.: "--foo"), return an empty collection ([])
  • if the option is present and has a single value (e.g. "--foo=bar"), return a collection having one element (["bar"])
  • if the option is present and has multiple values (e.g. "--foo=bar --foo=baz"), return a collection having elements for each value (["bar", "baz"])
  • if the option is not present, return null

Return

a list of option values for the given name

Parameters

name

the name of the option