Package-level declarations

Types

Link copied to clipboard

A version of CoreCliktCommand that returns a value from the run function, which is then passed to subcommands.

Link copied to clipboard

A version of CoreCliktCommand that supports a suspending run function.

Link copied to clipboard

A CoreSuspendingCliktCommand that has a default implementation of run that is a no-op.

Functions

Link copied to clipboard
fun <T> CoreChainedCliktCommand<T>.main(argv: Array<out String>, initial: T): T
fun <T> CoreChainedCliktCommand<T>.main(argv: List<String>, initial: T): T

Parse the command line and print helpful output if any errors occur.

Link copied to clipboard
fun <T> CoreChainedCliktCommand<T>.parse(argv: Array<String>, initial: T): T
fun <T> CoreChainedCliktCommand<T>.parse(argv: List<String>, initial: T): T

Parse the command line and throw an exception if parsing fails.