public static class CmdLineParser.Option.StringOption extends CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption
Constructor and Description |
---|
StringOption(char shortForm,
String longForm)
Instantiates a new string option.
|
StringOption(String longForm)
Instantiates a new string 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 StringOption(char shortForm, String longForm)
shortForm
- the short formlongForm
- the long formpublic StringOption(String longForm)
longForm
- the long formprotected Object parseValue(String arg, Locale locale)
CmdLineParser.Option
parseValue
in class CmdLineParser.Option
arg
- the arglocale
- the localeCopyright © 2009–2020 Jeremy Landis. All rights reserved.