Skip to content

Add CommandArguments#getOrThrow #662

@GliczDev

Description

@GliczDev

Description

Even tho there is CommandArguments#getOptional, I think CommandArguments#getOrThrow-like (#getUncheckedOrThrow etc.) would be easier to use and much shorter than whatever this is:
args.<String>getOptionalUnchecked("name").orElseThrow()

Expected code

basically CommandArguments#getOrThrow

Extra details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions