Serializable
public static class Options.HelpException extends Exception
--help
option on a built-in command.
It can be highlighted using the highlight(String, StyleResolver)
method and then printed
to the Terminal
.Modifier and Type | Field | Description |
---|---|---|
static String |
DEFAULT_COLORS |
Constructor | Description |
---|---|
HelpException(String message) |
Modifier and Type | Method | Description |
---|---|---|
static StyleResolver |
defaultStyle() |
|
static AttributedString |
highlight(String msg,
StyleResolver resolver) |
|
static AttributedString |
highlightComment(String comment,
StyleResolver resolver) |
|
static AttributedString |
highlightSyntax(String syntax,
StyleResolver resolver) |
|
static AttributedString |
highlightSyntax(String syntax,
StyleResolver resolver,
boolean subcommands) |
|
static StyleResolver |
style(String str) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String DEFAULT_COLORS
public HelpException(String message)
public static StyleResolver defaultStyle()
public static StyleResolver style(String str)
public static AttributedString highlight(String msg, StyleResolver resolver)
public static AttributedString highlightSyntax(String syntax, StyleResolver resolver, boolean subcommands)
public static AttributedString highlightSyntax(String syntax, StyleResolver resolver)
public static AttributedString highlightComment(String comment, StyleResolver resolver)
Copyright © 2020. All rights reserved.