|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.commons.cli.HelpFormatter
net.sf.clichart.main.FixedHelpFormatter
public class FixedHelpFormatter
When printing a help string, the HelpFormatter class in commons cli only shows one option that has no short option. This overrides the renderOptions method to change this behaviour. Also, the comparator used to sort the options doesn't work properly :( - see inner class
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.cli.HelpFormatter |
|---|
DEFAULT_ARG_NAME, DEFAULT_DESC_PAD, DEFAULT_LEFT_PAD, DEFAULT_LONG_OPT_PREFIX, DEFAULT_OPT_PREFIX, DEFAULT_SYNTAX_PREFIX, DEFAULT_WIDTH, defaultArgName, defaultDescPad, defaultLeftPad, defaultLongOptPrefix, defaultNewLine, defaultOptPrefix, defaultSyntaxPrefix, defaultWidth |
| Constructor Summary | |
|---|---|
FixedHelpFormatter()
|
|
| Method Summary | |
|---|---|
protected java.lang.StringBuffer |
renderOptions(java.lang.StringBuffer sb,
int width,
org.apache.commons.cli.Options options,
int leftPad,
int descPad)
|
| Methods inherited from class org.apache.commons.cli.HelpFormatter |
|---|
createPadding, findWrapPos, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printOptions, printUsage, printUsage, printWrapped, printWrapped, renderWrappedText, rtrim |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedHelpFormatter()
| Method Detail |
|---|
protected java.lang.StringBuffer renderOptions(java.lang.StringBuffer sb,
int width,
org.apache.commons.cli.Options options,
int leftPad,
int descPad)
renderOptions in class org.apache.commons.cli.HelpFormatter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||