[Groovy] Class HelpFormatter
- org.codehaus.groovy.tools.shell.util.HelpFormatter
Custom CLI help formatter to render things correctly.
- Authors:
- Jason Dillon
Fields inherited from class | Fields |
---|---|
class HelpFormatter | DEFAULT_WIDTH, DEFAULT_LEFT_PAD, DEFAULT_DESC_PAD, DEFAULT_SYNTAX_PREFIX, DEFAULT_OPT_PREFIX, DEFAULT_LONG_OPT_PREFIX, DEFAULT_ARG_NAME, defaultWidth, defaultLeftPad, defaultDescPad, defaultSyntaxPrefix, defaultNewLine, defaultOptPrefix, defaultLongOptPrefix, defaultArgName |
Constructor Summary
Constructor and description |
---|
HelpFormatter
() |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
int |
getDefaultWidth() | |
protected StringBuffer |
renderOptions(StringBuffer sb, int width, Options options, int leftPad, int descPad) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class HelpFormatter | getWidth, setWidth, getOptionComparator, setOptionComparator, printUsage, printUsage, setArgName, getArgName, getLongOptPrefix, printOptions, setNewLine, getLeftPadding, getNewLine, printWrapped, printWrapped, getSyntaxPrefix, setLongOptPrefix, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, printHelp, getDescPadding, setLeftPadding, setOptPrefix, setSyntaxPrefix, getOptPrefix, setDescPadding, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail
HelpFormatter()
Method Detail
int getDefaultWidth()
@Override protected StringBuffer renderOptions(StringBuffer sb, int width, Options options, int leftPad, int descPad)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/tools/shell/util/HelpFormatter.html