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