Package org.apache.commons.cli.help
Class HelpFormatter.Builder
java.lang.Object
org.apache.commons.cli.help.AbstractHelpFormatter.Builder<HelpFormatter.Builder,HelpFormatter>
org.apache.commons.cli.help.HelpFormatter.Builder
- All Implemented Interfaces:
Supplier<HelpFormatter>
- Enclosing class:
HelpFormatter
public static class HelpFormatter.Builder
extends AbstractHelpFormatter.Builder<HelpFormatter.Builder,HelpFormatter>
A builder for the HelpFormatter. Intended to make more complex uses of the HelpFormatter class easier. Default values are:
- showSince = true
- helpAppendable = a
TextHelpAppendable
writing toSystem.out
- optionFormatter.Builder = the default
OptionFormatter.Builder
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.cli.help.AbstractHelpFormatter.Builder
asThis, getComparator, getHelpAppendable, getOptionFormatBuilder, getOptionGroupSeparator, setComparator, setHelpAppendable, setOptionFormatBuilder, setOptionGroupSeparator
-
Constructor Details
-
Builder
protected Builder()Constructs a new instace.Sets
showSince
totrue
.
-
-
Method Details
-
get
-
setShowSince
Sets the showSince flag.- Parameters:
showSince
- the desired value of the showSince flag.- Returns:
- this instance.
-