FlagBuilder

Builds a boolean flag. A flag name means true, a negation name means false, and absence means default.

Functions

Link copied to clipboard

Sets the value used when neither a flag name nor a negation name is present.

Link copied to clipboard
fun negatedBy(vararg negation: String): FlagBuilder

Adds names that set the flag to false, for example "--no-verbose".

Link copied to clipboard
open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, Boolean>