CommandInvocation
class CommandInvocation<T : BaseCliktCommand<T>>(val command: T, val optionInvocations: Map<Option, List<OptionInvocation>>, val argumentInvocations: List<ArgumentInvocation>, val subcommandInvocations: List<CommandInvocation<T>>, val errors: List<CliktError>)
The output of parsing a single command and its options and arguments.
Constructors
Link copied to clipboard
constructor(command: T, optionInvocations: Map<Option, List<OptionInvocation>>, argumentInvocations: List<ArgumentInvocation>, subcommandInvocations: List<CommandInvocation<T>>, errors: List<CliktError>)
Properties
Functions
Link copied to clipboard
fun <T : BaseCliktCommand<T>> CommandInvocation<T>.flatten(finalize: Boolean = true): FlatInvocations<T>
Flatten a command invocation into a sequence of invocations.