-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I think Java 8 default methods would be a great way to convert or enrich parsed arguments. For example, I tried the following to convert a String to a Path:
public interface Args {
@Option(shortName = "d")
String directory();
default Path directoryPath() {
return FileSystems.getDefault().getPath(directory());
}
}
Unfortunately, jewelcli does not seem to support default methods. When calling directoryPath(), I get null.
Without having looked at the code, I feel like this should be easy to implement. All that needs to be done it to not override/implement default methods in proxies.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels