Class CmdUsageFormatter

java.lang.Object
com.beust.jcommander.DefaultUsageFormatter
org.apache.pulsar.admin.cli.CmdUsageFormatter
All Implemented Interfaces:
com.beust.jcommander.IUsageFormatter

public class CmdUsageFormatter extends com.beust.jcommander.DefaultUsageFormatter
  • Constructor Details

    • CmdUsageFormatter

      public CmdUsageFormatter(com.beust.jcommander.JCommander commander)
  • Method Details

    • appendCommands

      public void appendCommands(StringBuilder out, int indentCount, int descriptionIndent, String indent)
      This method is copied from DefaultUsageFormatter, but the ability to skip deprecated commands is added.
      Overrides:
      appendCommands in class com.beust.jcommander.DefaultUsageFormatter
      Parameters:
      out -
      indentCount -
      descriptionIndent -
      indent -
    • addDeprecatedCommand

      public void addDeprecatedCommand(String command)
    • removeDeprecatedCommand

      public void removeDeprecatedCommand(String command)
    • clearDeprecatedCommand

      public void clearDeprecatedCommand()