Class CmdLineParserWithPrintInformation


  • public class CmdLineParserWithPrintInformation
    extends org.kohsuke.args4j.CmdLineParser
    An implementation of CmdLineParser that can provide some information that can be used to print help in more flexible form than CmdLineParser.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int calculateMaxLen()  
      void printUsage​(Writer out, org.kohsuke.args4j.OptionHandlerFilter filter, int len)
      Prints usage using the provided length to print options (instead of calculating the length as in CmdLineParser).
      • Methods inherited from class org.kohsuke.args4j.CmdLineParser

        addArgument, addOption, createOptionHandler, getArguments, getOptions, getProperties, isOption, parseArgument, parseArgument, printExample, printExample, printExample, printExample, printOption, printSingleLineUsage, printSingleLineUsage, printUsage, printUsage, printUsage, registerHandler, setUsageWidth, stopOptionParsing
    • Constructor Detail

      • CmdLineParserWithPrintInformation

        public CmdLineParserWithPrintInformation​(Object bean)
    • Method Detail

      • calculateMaxLen

        public int calculateMaxLen()
        Returns:
        the maximum length of the options and arguments.
      • printUsage

        public void printUsage​(Writer out,
                               org.kohsuke.args4j.OptionHandlerFilter filter,
                               int len)
        Prints usage using the provided length to print options (instead of calculating the length as in CmdLineParser).