Class Options.HelpException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jline.builtins.Options.HelpException
All Implemented Interfaces:
Serializable
Enclosing class:
Options

public static class Options.HelpException extends Exception
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 Details

    • HelpException

      public HelpException(String message)
  • Method Details

    • defaultStyle

      public static org.jline.utils.StyleResolver defaultStyle()
    • highlight

      public static org.jline.utils.AttributedString highlight(String msg, org.jline.utils.StyleResolver resolver)
    • highlightSyntax

      public static org.jline.utils.AttributedString highlightSyntax(String syntax, org.jline.utils.StyleResolver resolver, boolean subcommands)
    • highlightSyntax

      public static org.jline.utils.AttributedString highlightSyntax(String syntax, org.jline.utils.StyleResolver resolver)
    • highlightComment

      public static org.jline.utils.AttributedString highlightComment(String comment, org.jline.utils.StyleResolver resolver)