此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0! |
此版本仍在开发中,尚未被视为稳定版本。对于最新的稳定版本,请使用 Spring Shell 3.3.0! |
编程方式是用来定义
一个选项。CommandRegistration
withOption
CommandRegistration registration = CommandRegistration.builder()
.withOption()
.longNames("arg1")
.and()
.build();
CommandRegistration
可以定义为 Bean 或手动注册
使用 .CommandCatalog
查看以下部分了解其他选项类型,即短格式。 |
查看以下部分了解其他选项类型,即短格式。 |