Class FormatterHelper

All Implemented Interfaces:
IUsageFormatter

public class FormatterHelper extends DefaultUsageFormatter
  • Constructor Details

    • FormatterHelper

      public FormatterHelper(JCommander commander)
  • Method Details

    • appendAllParametersDetails

      public void appendAllParametersDetails(StringBuilder out, int indentCount, String indent, List<ParameterDescription> sortedParameters)
      Description copied from class: DefaultUsageFormatter
      Appends the details of all parameters in the given order to the argument string builder, indenting every line with indentCount-many indent.
      Overrides:
      appendAllParametersDetails in class DefaultUsageFormatter
      Parameters:
      out - the builder to append to
      indentCount - the amount of indentation to apply
      indent - the indentation
      sortedParameters - the parameters to append to the builder