Optional

class Optional<S, D : ArgumentDescriptor<*>>(    builder: ArgumentBuilder<S, *>,     name: String,     descriptor: D) : CommandArgument<S, ArgumentBuilder<S, *>, D, ArgumentAccessor<S, D>?>

CommandArgument that may be absent from the command.

Author

Cypher121

See also

Constructors

Link copied to clipboard
fun <S, D : ArgumentDescriptor<*>> Optional(    builder: ArgumentBuilder<S, *>,     name: String,     descriptor: D)

Functions

Link copied to clipboard
open inline override fun register(parentBuilder: ArgumentBuilder<S, *>, action: ArgumentBuilder<S, *>.(ArgumentAccessor<S, D>?) -> Unit)

Registers the argument on the parentBuilder as an optional argument and further configures the resulting subcommands with the given action.

Properties

Link copied to clipboard
val builder: ArgumentBuilder<S, *>
Link copied to clipboard
val descriptor: D
Link copied to clipboard
val name: String