# addStringsOption

open fun addStringsOption(option: String): JavadocOptionFileOption<List<String>>(source)

Adds an option that will have multiple values joined by `path.separator` supplied as a separate argument. Calling this method behaves exactly like calling `addStringsOption(option, System.getProperty("path.separator"))`.

`addStringsOption("foo").setValue(asList("bar", "baz"))` with the path separator being `:` will produce the command-line

        -foo 'bar:baz'

Content copied to clipboard

#### Return

an option object to further configure the value

#### Parameters

option

command-line option

open fun addStringsOption(option: String, joinBy: String): JavadocOptionFileOption<List<String>>(source)

Adds an option that will have multiple values joined by the provided separator supplied as a separate argument. The returned option object must be used to configure the value unless the option should not be supplied.

`addStringsOption("foo", "|").setValue(asList("bar", "baz"))` will produce the command-line

        -foo 'bar|baz'

Content copied to clipboard

A value of `null` or an empty list will make the option not be supplied and can be used to unset an option that previously was set.

#### Return

an option object to further configure the value

#### Parameters

option

command-line option

joinBy

separator