Validate all arguments together #2332
Labels
A-parsing
Area: Parser's logic and needs it changed somehow.
A-validators
Area: ArgMatches validation logi
C-enhancement
Category: Raise on the bar on expectations
S-duplicate
Status: Closed as Duplicate
Make sure you completed the following tasks
Describe your use case
I'd like to have a validation function that would validate the arguments together.
Describe the solution you'd like
I'm thinking something like this:
(I'm not married to this example, it is just so we can have an idea)
In this case, argument
myarg
is invalid, after I've gone through some logic that would go through all arguments already supplied (and validated individually).Alternatives, if applicable
Validate after parsing using
ArgMatches
.Additional context
Already discussed at #1913 and #1206, and I think a solution with a closure after on the app context could make sense.
The text was updated successfully, but these errors were encountered: