public static class CmdLineParser.Option.LongOption extends CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption
Constructor and Description |
---|
LongOption(char shortForm,
String longForm)
Instantiates a new long option.
|
LongOption(String longForm)
Instantiates a new long option.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
parseValue(String arg,
Locale locale)
Override to extract and convert an option value passed on the command-line.
|
getValue, longForm, shortForm, wantsValue
public LongOption(char shortForm, String longForm)
shortForm
- the short formlongForm
- the long formpublic LongOption(String longForm)
longForm
- the long formprotected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException
CmdLineParser.Option
parseValue
in class CmdLineParser.Option
arg
- the arglocale
- the localeCmdLineParser.IllegalOptionValueException
- the illegal option value exceptionCopyright © 2009–2020 Jeremy Landis. All rights reserved.