Skip to content

clikt / com.github.ajalt.clikt.parameters.options / OptionCallTransformContext


class OptionCallTransformContext : Option

A receiver for options transformers.


Name Summary
<init> A receiver for options transformers.OptionCallTransformContext(name:String, option:Option, context:Context)


Name Summary
context val context:Context
name The name that was used to invoke this option.val name:String
option The option that was invokedval option:Option


Name Summary
fail Throw an exception indicating that an invalid value was fail(message:String):Nothing
message Issue a message that can be shown to the userfun message(message:String):Unit
require If value is false, call fail with the output of lazyMessagefun require(value:Boolean, lazyMessage: () ->String= { "invalid value" }):Unit