CommanderOption
constructor(command: CommanderCommand, name: String, aliases: Array<String> = arrayOf(), shortAlias: Array<String> = arrayOf(), description: String? = null, required: Boolean = false, hasValue: Boolean = false, defaultValue: String? = null, valueName: String? = null, valueDescription: String? = null, valueValidator: CommanderValueValidator? = null)(source)
Creates a new CommanderOption
Parameters
command
The command this option belongs to
name
The name of the option
aliases
The aliases of the option
shortAlias
The short aliases of the option
description
The description of the option
required
If the option is required
hasValue
If the option has a value
defaultValue
The default value of the option
valueName
The name of the value
valueDescription
The description of the value
valueValidator
The validator of the value