Class Help


public class Help extends AbstractHelp
The help output for the command line client.
  • Field Details

    • NOTES

      protected static final String[] NOTES
      An array of notes to go at the bottom of the help output
    • writer

      protected final PrintWriter writer
      The writer this instance writes to
  • Constructor Details

    • Help

      public Help(Writer writer)
      Creates a Help instance to write to the specified writer.
      Parameters:
      writer - the writer to write to.
    • Help

      public Help(PrintStream stream)
      Creates a Help instance to print to the specified stream.
      Parameters:
      stream - the PrintStream to write to.
  • Method Details

    • printUsage

      public void printUsage(org.apache.commons.cli.Options opts)
      Print the usage to the specific PrintWriter.
      Parameters:
      opts - The defined options.
    • printArgumentTypes

      public String printArgumentTypes()
      Prints the list of argument types to the writer.
      Returns:
      returns the padding for the arguments.