Skip to content

Expose ArguParseException or similar for use within apps #175

@bartelink

Description

@bartelink

Description

Would like a way to throw ArguParseException, either directly or indirectly via a helper.

e.g. missingArg or invalidCommand of string -> 'a that would raise (ArguParseException("ERROR: " + message)) or similar

Expected behavior

Can handle 2% of cases where I determine that semantics have been contravened by the invocation, but can't represent that rule via attributes and/or Argu API calls

Actual behavior

Need to define my own exception for that, and then remember to handle it explicitly as I already need to for ArguParseException

Known workarounds

In Equinox, Propulsion and some closed source apps, I and others have established a convention of having a secondary exception (MissingArg)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions