clikt / com.github.ajalt.clikt.core / Context / Builder

Builder

class Builder

Constructors

<init>

Builder(command: CliktCommand, parent: Context? = null)

Properties

allowInterspersedArgs

var allowInterspersedArgs: Boolean

If false, options and arguments cannot be mixed; the first time an argument is encountered, all remaining tokens are parsed as arguments.

autoEnvvarPrefix

var autoEnvvarPrefix: String?

The prefix to add to inferred envvar names.

helpFormatter

var helpFormatter: HelpFormatter

The help formatter for this command

helpOptionMessage

var helpOptionMessage: String

The description of the help option.

helpOptionNames

var helpOptionNames: Set<String>

The names to use for the help option.

tokenTransformer

var tokenTransformer: Context.(String) -> String

An optional transformation function that is called to transform command line