Package-level declarations

Types

Link copied to clipboard
annotation class Argument(val help: String = "")

Declares a positional argument on a Command constructor parameter, named after the parameter.

Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class Command(val name: String = "", val description: String = "")

Marks a class whose primary-constructor parameters declare a command-line interface.

Link copied to clipboard
annotation class Flag(val names: Array<String> = [], val help: String = "")

Declares a boolean flag on a Command constructor parameter.

Link copied to clipboard
annotation class Option(val names: Array<String> = [], val help: String = "", val default: String = NO_DEFAULT)

Declares a value-bearing named option on a Command constructor parameter.

Properties

Link copied to clipboard
const val NO_DEFAULT: String

Sentinel for Option.default meaning "no default supplied" (annotation arguments cannot be null). Used by the processor; not intended for direct use.