class ArgumentTransformContext : Argument
A receiver for argument transformers.
ArgumentTransformContext(argument: Argument, context: Context)
A receiver for argument transformers. |
val argument: Argument
The argument that was invoked |
|
val context: Context |
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 |