You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that the upcoming picocli v3.0 will have a different internal model. It no longer assumes that all parameters are fields. (To support annotating methods in addition to fields.)
So instead of returning a list of java.reflection.Field objects, the new method should probably return objects from the model. Something like this:
public static class MissingParameterException extends ParameterException {
public List<ArgSpec<?>> getMissingParameters() { ... }
}
Extract missing fields information from MissingParameterException in case of the exception.
Example:
Proposal:
Add the method
getMissingFields
that returns the associated missing fields.The text was updated successfully, but these errors were encountered: