-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
[API-8] Commands - Support generic parameter validation #2156
Comments
Why not just create your own |
I've added this as a separate parameter,
It will return a string. I do not want to add a generic "validate" to all parameters because that depends on parameters:
It's not worth it with the number of caveats there will have to be. So, I'll add the validated string parser, but if you're wanting to create your own objects via a parser, you're better off just writing the value parser yourself. |
It would be nice to have some way of validating a parameter's output during argument parse time, rather than at execution time.
An example:
The text was updated successfully, but these errors were encountered: