Skip to content

Add CommandArguments#getOrThrow #662

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

    标签

    enhancement新建 feature or request

    Type

    No type

    项目

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions