For the latest stable version, please use Spring Shell 3.3.3! |
Annotation
Option
annotation can be used to define an option name if you
don’t want it to be same as argument name.
@Command
public String example(@Option(longNames = "arg") String arg1) {
return "Hello " + arg1;
}