Package io.airlift.airline
Class CommandUsage
java.lang.Object
io.airlift.airline.CommandUsage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Comparator<? super OptionMetadata> -
Constructor Summary
ConstructorsConstructorDescriptionCommandUsage(int columnSize) CommandUsage(int columnSize, Comparator<? super OptionMetadata> optionComparator) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<OptionMetadata> sortOptions(List<OptionMetadata> options) voidusage(String programName, String groupName, String commandName, CommandMetadata command) Display the help on System.out.voidusage(String programName, String groupName, String commandName, CommandMetadata command, UsagePrinter out) voidusage(String programName, String groupName, String commandName, CommandMetadata command, StringBuilder out) Store the help in the passed string builder.
-
Field Details
-
columnSize
private final int columnSize -
optionComparator
-
-
Constructor Details
-
CommandUsage
public CommandUsage() -
CommandUsage
public CommandUsage(int columnSize) -
CommandUsage
-
-
Method Details
-
usage
public void usage(@Nullable String programName, @Nullable String groupName, String commandName, CommandMetadata command) Display the help on System.out. -
usage
public void usage(@Nullable String programName, @Nullable String groupName, String commandName, CommandMetadata command, StringBuilder out) Store the help in the passed string builder. -
usage
public void usage(@Nullable String programName, @Nullable String groupName, String commandName, CommandMetadata command, UsagePrinter out) -
sortOptions
-