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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDeprecatedCommand(String command) voidappendCommands(StringBuilder out, int indentCount, int descriptionIndent, String indent) This method is copied from DefaultUsageFormatter, but the ability to skip deprecated commands is added.voidvoidremoveDeprecatedCommand(String command) Methods inherited from class com.beust.jcommander.DefaultUsageFormatter
appendAllParametersDetails, appendMainLine, getCommandDescription, getI18nString, s, usage, usage, usage, usage, usage, wrapDescription, wrapDescription
-
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:
appendCommandsin classcom.beust.jcommander.DefaultUsageFormatter- Parameters:
out-indentCount-descriptionIndent-indent-
-
addDeprecatedCommand
-
removeDeprecatedCommand
-
clearDeprecatedCommand
public void clearDeprecatedCommand()
-