required

inline fun <S, B : ArgumentBuilder<S, *>, D : ArgumentDescriptor<*>> ArgumentBuilder<S, *>.required(constructor: ArgumentConstructor<S, B, D>, action: B.(ArgumentAccessor<S, D>) -> Unit)

Registers the argument specified by the constructor as a required argument and further configures the resulting subcommand with the given action.

Accessor passed to action can be used on a CommandContext within an execute block to obtain an ArgumentReader for this argument.

Author

Cypher121

See also