Skip to content

How to return an error when the value of another argument is unexpected #5556

Answered by epage
sorairolake asked this question in Q&A
Discussion options

You must be logged in to vote

We do not support this at this time and it would require having a check in your application after parsing.
We have requires_if but it is the opposite of what you want.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sorairolake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants