Package pro.johndunlap.getopt.annotation
Annotation Type Help
-
@Retention(RUNTIME) @Target(TYPE) public @interface Help
This annotation provides additional metadata for the help text beyond what would otherwise have been available with just the field level annotations.- Author:
- John Dunlap
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringclosingTextThe text to display after the list of options.inthelpExitStatusThe exit status which should be used when the help message is invoked.String[]helpTokensThe tokens which should trigger the display of the help message.StringnameThe name of the program.StringopeningTextThe text to display prior to the list of options.booleanshowHelpOnErrorTrue if the help message should be displayed when an error occurs and false otherwise.
-
-
-
Element Detail
-
openingText
String openingText
The text to display prior to the list of options.- Returns:
- The text to display prior to the list of options.
- Default:
- ""
-
-
-
closingText
String closingText
The text to display after the list of options.- Returns:
- The text to display after the list of options.
- Default:
- ""
-
-
-
helpTokens
String[] helpTokens
The tokens which should trigger the display of the help message. Defaults to "-h" and "--help".- Returns:
- The tokens which should trigger the display of the help message.
- Default:
- {"-h", "--help"}
-
-
-
name
String name
The name of the program. Defaults to the name of the class.- Returns:
- The name of the program.
- Default:
- ""
-
-