此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0Spring中文文档

此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0Spring中文文档

编程方式是用来定义 一个选项。CommandRegistrationwithOptionSpring中文文档

CommandRegistration registration = CommandRegistration.builder()
	.withOption()
		.longNames("arg1")
		.and()
	.build();

CommandRegistration可以定义为 Bean 或手动注册 使用 .CommandCatalogSpring中文文档

查看以下部分了解其他选项类型,即短格式。
查看以下部分了解其他选项类型,即短格式。