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

Link copied to clipboard
val command: T
Link copied to clipboard

The errors that occurred while parsing this command.

Link copied to clipboard

The subcommands of this command that were invoked.

Functions

Link copied to clipboard

Flatten a command invocation into a sequence of invocations.