Java org.apache.commons.cli HelpFormatter fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.cli HelpFormatter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.cli HelpFormatter.

The text is from its open source code.

Subclass

org.apache.commons.cli.HelpFormatter has subclasses.
Click this link to see all its subclasses.

Field

intDEFAULT_WIDTH
default number of characters per line
intDEFAULT_LEFT_PAD
default padding to the left of each line
intDEFAULT_DESC_PAD
the number of characters of padding to be prefixed to each description line

Constructor

Method

intgetDescPadding()
Returns the 'descPadding'.
intgetLeftPadding()
Returns the 'leftPadding'.
StringgetNewLine()
Returns the 'newLine'.
intgetWidth()
Returns the 'width'.
voidprintHelp(String cmdLineSyntax, Options options)
Print the help for options with the specified command line syntax.
voidprintHelp(String cmdLineSyntax, Options options, boolean autoUsage)
Print the help for options with the specified command line syntax.
voidprintHelp(String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage)
Print the help for options with the specified command line syntax.
voidprintHelp(int width, String cmdLineSyntax, String header, Options options, String footer)
Print the help for options with the specified command line syntax.
voidprintHelp(String cmdLineSyntax, String header, Options options, String footer)
Print the help for options with the specified command line syntax.
voidprintHelp(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer, boolean autoUsage)
Print the help for options with the specified command line syntax.
voidprintHelp(int width, String cmdLineSyntax, String header, Options options, String footer, boolean autoUsage)
Print the help for options with the specified command line syntax.
voidprintHelp(PrintWriter pw, int width, String cmdLineSyntax, String header, Options options, int leftPad, int descPad, String footer)
Print the help for options with the specified command line syntax.
voidprintOptions(PrintWriter pw, int width, Options options, int leftPad, int descPad)

Print the help for the specified Options to the specified writer, using the specified width, left padding and description padding.

voidprintUsage(PrintWriter pw, int width, String app, Options options)

Prints the usage statement for the specified application.

voidprintUsage(PrintWriter pw, int width, String cmdLineSyntax)
Print the cmdLineSyntax to the specified writer, using the specified width.
voidprintWrapped(PrintWriter pw, int width, String text)
Print the specified text to the specified PrintWriter.
voidprintWrapped(PrintWriter pw, int width, int nextLineTabStop, String text)
Print the specified text to the specified PrintWriter.
voidsetArgName(String name)
Sets the 'argName'.
voidsetDescPadding(int padding)
Sets the 'descPadding'.
voidsetLeftPadding(int padding)
Sets the 'leftPadding'.
voidsetLongOptPrefix(String prefix)
Sets the 'longOptPrefix'.
voidsetNewLine(String newline)
Sets the 'newLine'.
voidsetOptionComparator(Comparator comparator)
Set the comparator used to sort the options when they output in help text Passing in a null parameter will set the ordering to the default mode
voidsetOptPrefix(String prefix)
Sets the 'optPrefix'.
voidsetSyntaxPrefix(String prefix)
Sets the 'syntaxPrefix'.
voidsetWidth(int width)
Sets the 'width'.