OptionBuilder
Builds a value-bearing option. The call you end with decides the property's type:
end here and the property is nullable, resolving to
nullwhen the option is absent;multiple collects repeats into a
List<T>.
Refine the value type (.int(), .enum<E>(), .convert(...)) before choosing cardinality.
Type Parameters
T
the option's value type.
Functions
Link copied to clipboard
Parses the value as a Boolean: true/false, 1/0, yes/no, y/n, or on/off.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Allows the option to repeat, collecting every occurrence into a List<T>.
Link copied to clipboard
open operator override fun provideDelegate(thisRef: Arguments, property: KProperty<*>): ReadOnlyProperty<Arguments, T?>
Link copied to clipboard
Requires the option; parsing fails when it is absent.