This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.3.1!

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;
}