Package org.jline.builtins
Class Options.HelpException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jline.builtins.Options.HelpException
- All Implemented Interfaces:
Serializable
- Enclosing class:
Options
Exception thrown when using the
--help option on a built-in command.
It can be highlighted using the highlight(String, StyleResolver) method and then printed
to the Terminal.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StyleResolverstatic AttributedStringhighlight(String msg, StyleResolver resolver) static AttributedStringhighlightComment(String comment, StyleResolver resolver) static AttributedStringhighlightSyntax(String syntax, StyleResolver resolver) static AttributedStringhighlightSyntax(String syntax, StyleResolver resolver, boolean subcommands) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HelpException
-
-
Method Details
-
defaultStyle
-
highlight
-
highlightSyntax
public static AttributedString highlightSyntax(String syntax, StyleResolver resolver, boolean subcommands) -
highlightSyntax
-
highlightComment
-