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

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

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

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