vertx / io.vertx.core.cli.annotations / ParsedAsList

ParsedAsList

@Target([AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER]) class ParsedAsList

Annotates a setter to be called with the value of a command line option. The setter must also have been annotated with Option. When annotated with ParsedAsList, the option value is parsed as a list. The value is split and then each segment is trimmed.

Author
Clement Escoffier

See Also
Option

Constructors

<init>

ParsedAsList(separator: String)

Annotates a setter to be called with the value of a command line option. The setter must also have been annotated with Option. When annotated with ParsedAsList, the option value is parsed as a list. The value is split and then each segment is trimmed.

Properties

separator

val separator: String

The separator used to split the value. , is used by default.