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.
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:
Unfortunately, jewelcli does not seem to support default methods. When calling
directoryPath(), I getnull.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.