Package | Description |
---|---|
org.kohsuke.args4j |
Core classes of the Args4J command line parser.
|
org.kohsuke.args4j.spi |
Classes for extending the behavior of args4j.
|
Modifier and Type | Method and Description |
---|---|
static ParserProperties |
ParserProperties.defaults()
Returns an instance of the default parser properties.
|
ParserProperties |
CmdLineParser.getProperties() |
ParserProperties |
ParserProperties.withAtSyntax(boolean atSyntax)
Toggles the parsing of @-prefixes in values.
|
ParserProperties |
ParserProperties.withOptionSorter(Comparator<OptionHandler> sorter)
Controls how options are sorted in the usage screen.
|
ParserProperties |
ParserProperties.withOptionValueDelimiter(String v)
Sets the string used to separate option name and its value (such as --foo=bar vs --foo bar)
Default to whitespace.
|
ParserProperties |
ParserProperties.withShowDefaults(boolean showDefaults)
Toggles the showing of default values in the command line help.
|
ParserProperties |
ParserProperties.withUsageWidth(int usageWidth)
Sets the width of a usage line.
|
Constructor and Description |
---|
CmdLineParser(Object bean,
ParserProperties parserProperties)
Creates a new command line owner that
parses arguments/options and set them into
the given object.
|
Modifier and Type | Method and Description |
---|---|
String |
OptionHandler.getNameAndMeta(ResourceBundle rb,
ParserProperties properties)
Get string representing usage for this option, of the form "name metaval" or "name=metaval,
e.g.
|
Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.