Package picocli.codegen.docgen.manpage
Class ManPageGenerator.SortByShortestOptionNameAlphabetically
- java.lang.Object
-
- picocli.codegen.docgen.manpage.ManPageGenerator.SortByShortestOptionNameAlphabetically
-
- All Implemented Interfaces:
java.util.Comparator<CommandLine.Model.OptionSpec>
- Enclosing class:
- ManPageGenerator
static class ManPageGenerator.SortByShortestOptionNameAlphabetically extends java.lang.Object implements java.util.Comparator<CommandLine.Model.OptionSpec>
SortsOptionSpec
instances by their name in case-insensitive alphabetic order. If an option has multiple names, the shortest name is used for the sorting. Help options follow non-help options.
-
-
Constructor Summary
Constructors Constructor Description SortByShortestOptionNameAlphabetically()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(CommandLine.Model.OptionSpec o1, CommandLine.Model.OptionSpec o2)
-
-
-
Method Detail
-
compare
public int compare(CommandLine.Model.OptionSpec o1, CommandLine.Model.OptionSpec o2)
- Specified by:
compare
in interfacejava.util.Comparator<CommandLine.Model.OptionSpec>
-
-