Program

data class Program(val version: String? = null, val command: Command, val formatter: Formatter = DefaultFormatter(), val systemSetting: Boolean = false, val defaultCommand: List<String> = emptyList())

Constructors

Link copied to clipboard
constructor(name: String, version: String? = null, title: String? = null, description: String? = null, properties: Set<Property<*>> = emptySet())
constructor(name: String, version: String? = null, title: String? = null, description: String? = null, properties: Set<Property<*>> = emptySet(), commands: Set<Command>)
constructor(version: String? = null, command: Command, formatter: Formatter = DefaultFormatter(), systemSetting: Boolean = false, defaultCommand: List<String> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
val defaultCommand: List<String>
Link copied to clipboard
Link copied to clipboard
val systemSetting: Boolean = false
Link copied to clipboard
val version: String? = null

Functions

Link copied to clipboard
fun input(): String?
Link copied to clipboard
fun parse(args: Array<out String>): Command
fun parse(args: Iterable<String>): Command