Flag

data class Flag(val names: Set<String>, val description: String? = null, val multiple: Boolean = false, val tag: String? = null, val values: List<Boolean> = emptyList()) : Property<Boolean>

Constructors

Link copied to clipboard
constructor(shortName: Char? = null, name: String? = null, description: String? = null, multiple: Boolean = false)
constructor(names: Set<String>, description: String? = null, multiple: Boolean = false, tag: String? = null, values: List<Boolean> = emptyList())

Properties

Link copied to clipboard
open override val description: String? = null
Link copied to clipboard
open override val multiple: Boolean = false
Link copied to clipboard
open override val names: Set<String>
Link copied to clipboard
open override val optional: Boolean = true
Link copied to clipboard
open override val regex: Regex? = null
Link copied to clipboard
open override val tag: String? = null

TODO To group properties (for listing or alternatives). I.e.: '|alternate|' for grouping options that are exclusive or 'Common Options' to group in help

Link copied to clipboard
open override val type: KClass<Boolean>
Link copied to clipboard
open override val values: List<Boolean>

Functions

Link copied to clipboard
open override fun addValue(value: String): Flag
Link copied to clipboard
open override fun addValues(value: Property<*>): Property<Boolean>
Link copied to clipboard
open fun check(component: String, namePattern: Regex)
Link copied to clipboard
open fun typeText(): String