clikt / com.github.ajalt.clikt.parameters.arguments / ArgumentTransformContext

ArgumentTransformContext

class ArgumentTransformContext : Argument

A receiver for argument transformers.

Constructors

Name Summary
<init> A receiver for argument transformers.ArgumentTransformContext(argument:Argument, context:Context)

Properties

Name Summary
argument The argument that was invokedval argument:Argument
context val context:Context

Functions

Name Summary
fail Throw an exception indicating that usage was incorrect.fun 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