本文整理了Java中com.lexicalscope.jewel.cli.Option.description()
方法的一些代码示例,展示了Option.description()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Option.description()
方法的具体详情如下:
包路径:com.lexicalscope.jewel.cli.Option
类名称:Option
方法名:description
暂无
代码示例来源:origin: lexicalscope/jewelcli
@Override public String description() {
return option.description().trim();
}
代码示例来源:origin: torakiki/sejda
@Test
public void descriptionsHaveOptionalityInformation() {
for (MethodAndOption eachMethod : extractOptionAnnotations()) {
String description = eachMethod.getOption().description();
boolean hasOptionalityInfo = StringUtils.endsWith(description, "(optional)")
|| StringUtils.endsWith(description, "(required)");
if (!hasOptionalityInfo) {
throw new SejdaRuntimeException(
getTaskName() + " is missing optionality information [(optional) or (required)] on "
+ eachMethod.getMethodName());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!