Class CmdUsageFormatter

  • All Implemented Interfaces:
    com.beust.jcommander.IUsageFormatter

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

      • CmdUsageFormatter

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

      • 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()