Package jargs.examples.gnu
Class CustomOptionTest.ShortDateOption
- java.lang.Object
-
- jargs.gnu.CmdLineParser.Option
-
- jargs.examples.gnu.CustomOptionTest.ShortDateOption
-
- Enclosing class:
- CustomOptionTest
public static class CustomOptionTest.ShortDateOption extends CmdLineParser.Option
A custom type of command line option corresponding to a short date value, e.g. .
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jargs.gnu.CmdLineParser.Option
CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption
-
-
Constructor Summary
Constructors Constructor Description ShortDateOption(char shortForm, String longForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectparseValue(String arg, Locale locale)Override to extract and convert an option value passed on the command-line-
Methods inherited from class jargs.gnu.CmdLineParser.Option
getValue, longForm, shortForm, wantsValue
-
-
-
-
Constructor Detail
-
ShortDateOption
public ShortDateOption(char shortForm, String longForm)
-
-
Method Detail
-
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- Throws:
CmdLineParser.IllegalOptionValueException
-
-