Package org.jrd.backend.data
Interface Help.HelpFormatter
- All Known Implementing Classes:
Help.CliHelpFormatter
,Help.ManPageFormatter
- Enclosing class:
- Help
private static interface Help.HelpFormatter
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
indent
(int depth) launcher()
default String[]
Joins options together with a pipe and surrounds them in parentheses.void
void
void
void
default void
void
printOptions
(Map<String, String> map) void
void
void
default void
Prints eachlaunch option
prepended with the commonlauncher()
String.void
-
Method Details
-
printTitle
void printTitle() -
printName
void printName() -
printUsageHeading
void printUsageHeading() -
printUsage
default void printUsage()Prints eachlaunch option
prepended with the commonlauncher()
String. Man page formatting doesn't mind the indentation so this is common for both formatters. -
printOptionsHeading
void printOptionsHeading() -
printMainOptionsSubheading
void printMainOptionsSubheading() -
printSavingOptionsSubheading
void printSavingOptionsSubheading() -
printOptions
default void printOptions() -
printOptions
-
optionize
Joins options together with a pipe and surrounds them in parentheses.- Parameters:
options
- String array containing the individual options- Returns:
- String in the format of "(opt1|opt2|...)"
-
indent
-
launchOptions
-
launcher
String launcher() -
savingModifiers
String savingModifiers() -
printNotesHeading
void printNotesHeading() -
printNotes
void printNotes()
-