Skip to content

Add general constraint handling that can be the basis of depends/conflicts/either #131

Open
@Fryguy

Description

@Fryguy

From #130 (comment), @nanobowers wrote:

This seems like a specialization of a more general type of argument validation.

More specifically, the condition you are trying to satisfy with either: is max==1 and min==1. Should we entertain cases where min/max are not 1? conflicts: is kinda like max==1 and min==ANY

Was thinking something along the lines of:

validate min: <Integer/nil>, max: <Integer/nil>, args: <Array of Symbol>

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