Package org.apache.pulsar.admin.cli
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 Summary
Constructors Constructor Description CmdUsageFormatter(com.beust.jcommander.JCommander commander)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeprecatedCommand(java.lang.String command)voidappendCommands(java.lang.StringBuilder out, int indentCount, int descriptionIndent, java.lang.String indent)This method is copied from DefaultUsageFormatter, but the ability to skip deprecated commands is added.voidclearDeprecatedCommand()voidremoveDeprecatedCommand(java.lang.String command)
-
-
-
Method Detail
-
appendCommands
public void appendCommands(java.lang.StringBuilder out, int indentCount, int descriptionIndent, java.lang.String indent)This method is copied from DefaultUsageFormatter, but the ability to skip deprecated commands is added.- Overrides:
appendCommandsin classcom.beust.jcommander.DefaultUsageFormatter- Parameters:
out-indentCount-descriptionIndent-indent-
-
addDeprecatedCommand
public void addDeprecatedCommand(java.lang.String command)
-
removeDeprecatedCommand
public void removeDeprecatedCommand(java.lang.String command)
-
clearDeprecatedCommand
public void clearDeprecatedCommand()
-
-