class OptionTransformContext : Option
A receiver for options transformers.
OptionTransformContext(option: Option, context: Context)
A receiver for options transformers. |
val context: Context |
|
val option: Option
The option that was invoked |
fun fail(message: String): Nothing
Throw an exception indicating that usage was incorrect. |
|
fun require(value: Boolean, lazyMessage: () -> String = { "invalid value" }): Unit
If value is false, call fail with the output of lazyMessage |