Class AbstractHelp

java.lang.Object
org.apache.rat.help.AbstractHelp
Direct Known Subclasses:
Help, Licenses

public abstract class AbstractHelp extends Object
The base class to perform Help processing for programs.
  • Field Details

    • HELP_WIDTH

      public static final int HELP_WIDTH
      The width of the help report in chars.
      See Also:
    • HELP_PADDING

      public static final int HELP_PADDING
      The number of chars to indent output with.
      See Also:
    • helpFormatter

      protected final AbstractHelp.RatHelpFormatter helpFormatter
      The help formatter for this instance
    • versionInfo

      protected final VersionInfo versionInfo
      The version info for this instance
    • DEPRECATED_MSG

      public static final Function<org.apache.commons.cli.Option,String> DEPRECATED_MSG
      Function to format deprecated display
  • Constructor Details

    • AbstractHelp

      protected AbstractHelp()
      Base class to perform help output.
  • Method Details

    • createPadding

      public static String createPadding(int len)
      Create a padding.
      Parameters:
      len - The length of the padding in characters.
      Returns:
      a string with len blanks.
    • header

      public static String header(String txt)
      Create a section header for the output.
      Parameters:
      txt - the text to put in the header.
      Returns:
      the Header string.