public final class OptionDescriptor.Builder extends Object
Modifier and Type | Method and Description |
---|---|
OptionDescriptor |
build()
Builds and returns a new option descriptor.
|
OptionDescriptor.Builder |
category(OptionCategory category)
Defines the user category for this option.
|
OptionDescriptor.Builder |
deprecated(boolean deprecated)
Defines if this option is deprecated.
|
OptionDescriptor.Builder |
deprecationMessage(String deprecationMessage)
Specifies a human-readable deprecation reason and the recommended fix.
|
OptionDescriptor.Builder |
help(String help)
Specifies a human-readable description on how to use the option.
|
OptionDescriptor.Builder |
stability(OptionStability stability)
Defines the stability of this option.
|
OptionDescriptor.Builder |
usageSyntax(String usageSyntax)
Specifies a human-readable syntax describing the accepted values for this option.
|
public OptionDescriptor.Builder category(OptionCategory category)
OptionCategory.INTERNAL
.public OptionDescriptor.Builder stability(OptionStability stability)
OptionStability.EXPERIMENTAL
.public OptionDescriptor.Builder deprecated(boolean deprecated)
false
. This can be used to evolve options between releases.public OptionDescriptor.Builder help(String help)
public OptionDescriptor.Builder usageSyntax(String usageSyntax)
public OptionDescriptor.Builder deprecationMessage(String deprecationMessage)
public OptionDescriptor build()