Package org.jline.builtins
Class Options.HelpException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.jline.builtins.Options.HelpException
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Options
public static class Options.HelpException extends java.lang.Exception
Exception thrown when using the--help
option on a built-in command. It can be highlighted using thehighlight(String, StyleResolver)
method and then printed to theTerminal
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HelpException(java.lang.String message)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static AttributedStringBuilder
_highlightComment(java.lang.String comment, StyleResolver resolver)
private static AttributedStringBuilder
_highlightSyntax(java.lang.String syntax, StyleResolver resolver, boolean subcommand)
static StyleResolver
defaultStyle()
static AttributedString
highlight(java.lang.String msg, StyleResolver resolver)
static AttributedString
highlightComment(java.lang.String comment, StyleResolver resolver)
static AttributedString
highlightSyntax(java.lang.String syntax, StyleResolver resolver)
static AttributedString
highlightSyntax(java.lang.String syntax, StyleResolver resolver, boolean subcommands)
-
-
-
Method Detail
-
defaultStyle
public static StyleResolver defaultStyle()
-
highlight
public static AttributedString highlight(java.lang.String msg, StyleResolver resolver)
-
highlightSyntax
public static AttributedString highlightSyntax(java.lang.String syntax, StyleResolver resolver, boolean subcommands)
-
highlightSyntax
public static AttributedString highlightSyntax(java.lang.String syntax, StyleResolver resolver)
-
highlightComment
public static AttributedString highlightComment(java.lang.String comment, StyleResolver resolver)
-
_highlightSyntax
private static AttributedStringBuilder _highlightSyntax(java.lang.String syntax, StyleResolver resolver, boolean subcommand)
-
_highlightComment
private static AttributedStringBuilder _highlightComment(java.lang.String comment, StyleResolver resolver)
-
-