Class 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
      void addDeprecatedCommand​(java.lang.String command)  
      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.
      void clearDeprecatedCommand()  
      void removeDeprecatedCommand​(java.lang.String command)  
      • Methods inherited from class com.beust.jcommander.DefaultUsageFormatter

        appendAllParametersDetails, appendMainLine, getCommandDescription, getI18nString, s, usage, usage, usage, usage, usage, wrapDescription, wrapDescription
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmdUsageFormatter

        public CmdUsageFormatter​(com.beust.jcommander.JCommander commander)
    • 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:
        appendCommands in class com.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()