get

@JvmName(name = "getRequired")
operator fun <S, D : ArgumentDescriptor<*>> CommandContext<S>.get(accessor: ArgumentAccessor<S, D>): ArgumentReader<S, D>

Applies the accessor to the receiver CommandContext.

Shorthand/alternative to context.accessor().


@JvmName(name = "getOptional")
operator fun <S, D : ArgumentDescriptor<*>> CommandContext<S>.get(accessor: ArgumentAccessor<S, D>?): ArgumentReader<S, D>?

Applies the accessor to the receiver CommandContext.

If accessor is null, returns null.

Shorthand/alternative to context.accessor().