public class AdditionalOptionsCmdLineParser
extends org.kohsuke.args4j.CmdLineParser
CmdLineParser with nested options via the AdditionalOptions annotation.
Fields annotated with it should be of classes which have a default constructor, and will be automatically instantiated.
| Constructor and Description |
|---|
AdditionalOptionsCmdLineParser(org.pf4j.PluginManager pluginManager,
Object bean)
Creates a new command line owner that parses arguments/options and set them into the given
object.
|
| Modifier and Type | Method and Description |
|---|---|
org.pf4j.PluginManager |
getPluginManager() |
addArgument, addOption, createOptionHandler, getArguments, getOptions, getProperties, isOption, parseArgument, parseArgument, printExample, printExample, printExample, printExample, printOption, printSingleLineUsage, printSingleLineUsage, printUsage, printUsage, printUsage, registerHandler, setUsageWidth, stopOptionParsingpublic AdditionalOptionsCmdLineParser(org.pf4j.PluginManager pluginManager,
Object bean)
bean - instance of a class annotated by Option, Argument and AdditionalOptions. This object will receive values. If this is null, the processing will
be skipped, which is useful if you'd like to feed metadata from other sources.org.kohsuke.args4j.IllegalAnnotationError - if the option bean class is using args4j annotations
incorrectly.CmdLineParser(Object)