public class CLIHelpFormatter
extends org.apache.commons.cli.HelpFormatter
HelpFormatter
starting the descriptions in a new line rather then
indented in a column right to the longest option and adding an empty line between options.
The class has been implemented by copying in the renderOptions(StringBuffer, int, Options, int, int)
original
implementation and then modifying it step by step; hence, it includes third-party code from Apache's Commons CLI, licensed under Apache License, Version 2.0.DEFAULT_ARG_NAME, DEFAULT_DESC_PAD, DEFAULT_LEFT_PAD, DEFAULT_LONG_OPT_PREFIX, DEFAULT_LONG_OPT_SEPARATOR, DEFAULT_OPT_PREFIX, DEFAULT_SYNTAX_PREFIX, DEFAULT_WIDTH, defaultArgName, defaultDescPad, defaultLeftPad, defaultLongOptPrefix, defaultNewLine, defaultOptPrefix, defaultSyntaxPrefix, defaultWidth, optionComparator
Constructor and Description |
---|
CLIHelpFormatter()
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.StringBuffer |
renderOptions(java.lang.StringBuffer sb,
int width,
org.apache.commons.cli.Options options,
int leftPad,
int descPad) |
createPadding, findWrapPos, getArgName, getDescPadding, getLeftPadding, getLongOptPrefix, getLongOptSeparator, getNewLine, getOptionComparator, getOptPrefix, getSyntaxPrefix, getWidth, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printOptions, printUsage, printUsage, printWrapped, printWrapped, renderWrappedText, rtrim, setArgName, setDescPadding, setLeftPadding, setLongOptPrefix, setLongOptSeparator, setNewLine, setOptionComparator, setOptPrefix, setSyntaxPrefix, setWidth
Copyright 2017 Kieker Project, http://kieker-monitoring.net