Kieker 1.12

kieker.tools.util
Class CLIHelpFormatter

java.lang.Object
  extended by org.apache.commons.cli.HelpFormatter
      extended by kieker.tools.util.CLIHelpFormatter

public class CLIHelpFormatter
extends org.apache.commons.cli.HelpFormatter

Slightly changes default output of Common CLI's 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.

Since:
1.7
Author:
Andre van Hoorn

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, optionComparator
 
Constructor Summary
CLIHelpFormatter()
          Creates a new instance of this class.
 
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, getArgName, getDescPadding, getLeftPadding, getLongOptPrefix, getNewLine, getOptionComparator, getOptPrefix, getSyntaxPrefix, getWidth, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printOptions, printUsage, printUsage, printWrapped, printWrapped, renderWrappedText, rtrim, setArgName, setDescPadding, setLeftPadding, setLongOptPrefix, setNewLine, setOptionComparator, setOptPrefix, setSyntaxPrefix, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLIHelpFormatter

public CLIHelpFormatter()
Creates a new instance of this class.

Method Detail

renderOptions

protected java.lang.StringBuffer renderOptions(java.lang.StringBuffer sb,
                                               int width,
                                               org.apache.commons.cli.Options options,
                                               int leftPad,
                                               int descPad)
Overrides:
renderOptions in class org.apache.commons.cli.HelpFormatter

Kieker 1.12

Copyright 2015 Kieker Project, http://kieker-monitoring.net