jargs.gnu
public abstract static class CmdLineParser.Option extends Object
| Nested Class Summary | |
|---|---|
| static class | CmdLineParser.Option.BooleanOption |
| static class | CmdLineParser.Option.DoubleOption
An option that expects a floating-point value |
| static class | CmdLineParser.Option.IntegerOption
An option that expects an integer value |
| static class | CmdLineParser.Option.LongOption
An option that expects a long integer value |
| static class | CmdLineParser.Option.StringOption
An option that expects a string value |
| Constructor Summary | |
|---|---|
| protected | Option(String longForm, boolean wantsValue) |
| protected | Option(char shortForm, String longForm, boolean wantsValue) |
| Method Summary | |
|---|---|
| Object | getValue(String arg, Locale locale) |
| String | longForm() |
| protected Object | parseValue(String arg, Locale locale)
Override to extract and convert an option value passed on the
command-line |
| String | shortForm() |
| boolean | wantsValue()
Tells whether or not this option wants a value |