Package org.apache.commons.cli.help
package org.apache.commons.cli.help
The help production system.
This package contains the classes to produce help output. In general,, there are 4 classes that may interest users.
HelpFormatter
- The class used to produce the help output for most users.HelpAppendable
- Writes the output in a specific output format. For exampleTextHelpAppendable
for text, other classes for XHTML, Markdown, and so on.OptionFormatter
- Determines how to format the various data elements in an OptionTableDefinition
- Useful for developers who want to build custom option displays or use the help system to produce additional information in the help system.
- Since:
- 1.10.0
-
ClassDescriptionHelps formatters provides the framework to link a
HelpAppendable
with aOptionFormatter
and a defaultTableDefinition
so to produce standardized format help output.AbstractHelpFormatter.Builder<B extends AbstractHelpFormatter.Builder<B,T>, T extends AbstractHelpFormatter> Abstracts building instances for subclasses.An abstract implementation ofHelpAppendable
that writes output to anAppendable
instance.Defines a semantic scribe.A default formatter implementation for standard usage.A builder for the HelpFormatter.The definition of how to display Option attributes.Builds instances ofOptionFormatter
.The definition of a table to display.Writes text format output.The definition for styling recommendations blocks of text.The alignment possibilities.The builder for the TextStyle.