This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Shell 3.3.3!spring-doc.cn

Annotation

Option annotation can be used to define an option name if you don’t want it to be same as argument name.spring-doc.cn

@Command
public String example(@Option(longNames = "arg") String arg1) {
	return "Hello " + arg1;
}