Class CmdLineParser.Option.LongOption
java.lang.Object
jargs.gnu.CmdLineParser.Option
jargs.gnu.CmdLineParser.Option.LongOption
- All Implemented Interfaces:
Serializable
- Enclosing class:
CmdLineParser.Option
An option that expects a long integer value.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption -
Constructor Summary
ConstructorsConstructorDescriptionLongOption(char shortForm, String longForm) Instantiates a new long option.LongOption(String longForm) Instantiates a new long option. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectparseValue(String arg, Locale locale) Override to extract and convert an option value passed on the command-line.Methods inherited from class CmdLineParser.Option
getValue, longForm, shortForm, wantsValue
-
Constructor Details
-
LongOption
Instantiates a new long option.- Parameters:
shortForm- the short formlongForm- the long form
-
LongOption
Instantiates a new long option.- Parameters:
longForm- the long form
-
-
Method Details
-
parseValue
protected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException Description copied from class:CmdLineParser.OptionOverride to extract and convert an option value passed on the command-line.- Overrides:
parseValuein classCmdLineParser.Option- Parameters:
arg- the arglocale- the locale- Returns:
- the object
- Throws:
CmdLineParser.IllegalOptionValueException- the illegal option value exception
-