|
该版本仍在开发中,尚未被视为稳定。最新稳定版本请使用Spring Shell 3.4.1! |
编程
程序化方法指挥注册是 使用withOption定义一个选项。
CommandRegistration registration = CommandRegistration.builder()
.withOption()
.longNames("arg1")
.and()
.build();
指挥注册可以定义为豆子或手动注册带有指挥目录.
| 请查看以下章节的其他选项类型,即简短格式。 |