int |
CommandLine.Help.calcLongOptionColumnWidth(List<CommandLine.Model.OptionSpec> options,
List<CommandLine.Model.PositionalParamSpec> positionals,
CommandLine.Help.ColorScheme aColorScheme) |
Returns the width of the long options column in the usage help message.
|
CommandLine.Help |
CommandLine.IHelpFactory.create(CommandLine.Model.CommandSpec commandSpec,
CommandLine.Help.ColorScheme colorScheme) |
Returns a Help instance to assist in rendering the usage help message
|
CommandLine.Help.Layout |
CommandLine.Help.createDefaultLayout(List<CommandLine.Model.OptionSpec> options,
List<CommandLine.Model.PositionalParamSpec> positionals,
CommandLine.Help.ColorScheme aColorScheme) |
Returns a Layout instance configured with the user preferences captured in this Help instance.
|
static CommandLine.Help.TextTable |
CommandLine.Help.TextTable.forColumns(CommandLine.Help.ColorScheme colorScheme,
CommandLine.Help.Column... columns) |
Constructs a TextTable with the specified columns.
|
static CommandLine.Help.TextTable |
CommandLine.Help.TextTable.forColumnWidths(CommandLine.Help.ColorScheme colorScheme,
int... columnWidths) |
Constructs a new TextTable with columns with the specified width, all SPANning multiple columns on
overflow except the last column which WRAPS to the next row.
|
static CommandLine.Help.TextTable |
CommandLine.Help.TextTable.forDefaultColumns(CommandLine.Help.ColorScheme colorScheme,
int longOptionsColumnWidth,
int usageHelpWidth) |
Constructs a TextTable with five columns as follows:
required option/parameter marker (width: 2, indent: 0, TRUNCATE on overflow)
short option name (width: 2, indent: 0, TRUNCATE on overflow)
comma separator (width: 1, indent: 0, TRUNCATE on overflow)
long option name(s) (width: 24, indent: 1, SPAN multiple columns on overflow)
description line(s) (width: 51, indent: 1, WRAP to next row on overflow)
|
String |
CommandLine.getUsageMessage(CommandLine.Help.ColorScheme colorScheme) |
|
void |
CommandLine.HelpCommand.init(CommandLine helpCommandLine,
CommandLine.Help.ColorScheme colorScheme,
PrintWriter out,
PrintWriter err) |
Initializes this object with the information needed to implement a help command that provides usage help for other commands.
|
void |
CommandLine.IHelpCommandInitializable2.init(CommandLine helpCommandLine,
CommandLine.Help.ColorScheme colorScheme,
PrintWriter outWriter,
PrintWriter errWriter) |
Initializes this object with the information needed to implement a help command that provides usage help for other commands.
|
static boolean |
CommandLine.printHelpIfRequested(List<CommandLine> parsedCommands,
PrintStream out,
PrintStream err,
CommandLine.Help.ColorScheme colorScheme) |
Deprecated.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IOptionRenderer.render(CommandLine.Model.OptionSpec option,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
Returns a text representation of the specified option and its parameter(s) if any.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IParameterRenderer.render(CommandLine.Model.PositionalParamSpec param,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
Returns a text representation of the specified positional parameter.
|
CommandLine |
CommandLine.setColorScheme(CommandLine.Help.ColorScheme colorScheme) |
Sets the color scheme to use when printing help.
|
CommandLine.Help.Ansi.Text |
CommandLine.Model.ArgGroupSpec.synopsisText(CommandLine.Help.ColorScheme colorScheme,
Set<CommandLine.Model.ArgSpec> outparam_groupArgs) |
Returns the synopsis of this group.
|
void |
CommandLine.usage(PrintStream out,
CommandLine.Help.ColorScheme colorScheme) |
Prints a usage help message for the annotated command class to the specified PrintStream .
|
void |
CommandLine.usage(PrintWriter writer,
CommandLine.Help.ColorScheme colorScheme) |
|
static void |
CommandLine.usage(Object command,
PrintStream out,
CommandLine.Help.ColorScheme colorScheme) |
Equivalent to new CommandLine(command).usage(out, colorScheme) .
|