Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fryguy opened this issue Apr 19, 2022 · 1 comment

Comments

@Fryguy
Copy link
Member

Fryguy commented Apr 19, 2022

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>
@nanobowers
Copy link
Collaborator

@Fryguy taking a look at this.

nanobowers added a commit to nanobowers/optimist that referenced this issue May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants