Skip to content

package:args shouldn't throw ArgumentError on missing argument #872

Open
@eseidel

Description

@eseidel

ArgumentError is an Error and thus supposed to be used for programmer errors.

ArgResults.operator[] throws ArgumentError on what should be a runtime error:

throw ArgumentError('Could not find an option named "--$name".');

Am I wrong?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions