We should allow for optionals to be used in annotated arguments in place of nullable parameters. Example:
@Command("command [component]")
public void someCommand(Optional<SomeType> component) {
// ...
}
We should be able to infer the type of the optional without any issues. We will need to consider the mapping between components and optionals both when parsing & constructing the command tree, but also when mapping the parsed values to the method parameters.
We should allow for optionals to be used in annotated arguments in place of nullable parameters. Example:
We should be able to infer the type of the optional without any issues. We will need to consider the mapping between components and optionals both when parsing & constructing the command tree, but also when mapping the parsed values to the method parameters.