作者:漫湾镇团委 | 来源:互联网 | 2023-09-05 11:30
本文整理了Java中org.apache.hbase.thirdparty.org.apache.commons.cli.HelpFormatter.setOptionCompara
本文整理了Java中org.apache.hbase.thirdparty.org.apache.commons.cli.HelpFormatter.setOptionComparator()
方法的一些代码示例,展示了HelpFormatter.setOptionComparator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HelpFormatter.setOptionComparator()
方法的具体详情如下:
包路径:org.apache.hbase.thirdparty.org.apache.commons.cli.HelpFormatter
类名称:HelpFormatter
方法名:setOptionComparator
[英]Set the comparator used to sort the options when they output in help text. Passing in a null comparator will keep the options in the order they were declared.
[中]设置选项在帮助文本中输出时用于排序的比较器。传入空比较器将使选项保持其声明顺序。
代码示例
代码示例来源:origin: apache/hbase
protected void printUsage(final String usageStr, final String usageHeader,
final String usageFooter) {
HelpFormatter helpFormatter = new HelpFormatter();
helpFormatter.setWidth(120);
helpFormatter.setOptionComparator(new OptionsOrderComparator());
helpFormatter.printHelp(usageStr, usageHeader, options, usageFooter);
}
代码示例来源:origin: org.apache.hbase/hbase-common
protected void printUsage(final String usageStr, final String usageHeader,
final String usageFooter) {
HelpFormatter helpFormatter = new HelpFormatter();
helpFormatter.setWidth(120);
helpFormatter.setOptionComparator(new OptionsOrderComparator());
helpFormatter.printHelp(usageStr, usageHeader, options, usageFooter);
}
代码示例来源:origin: com.aliyun.hbase/alihbase-common
protected void printUsage(final String usageStr, final String usageHeader,
final String usageFooter) {
HelpFormatter helpFormatter = new HelpFormatter();
helpFormatter.setWidth(120);
helpFormatter.setOptionComparator(new OptionsOrderComparator());
helpFormatter.printHelp(usageStr, usageHeader, options, usageFooter);
}