home *** CD-ROM | disk | FTP | other *** search
- package jargs.gnu;
-
- import java.util.Locale;
-
- public class CmdLineParser$Option$IntegerOption extends CmdLineParser.Option {
- public CmdLineParser$Option$IntegerOption(char shortForm, String longForm) {
- super(shortForm, longForm, true);
- }
-
- public CmdLineParser$Option$IntegerOption(String longForm) {
- super(longForm, true);
- }
-
- protected Object parseValue(String arg, Locale locale) throws CmdLineParser.IllegalOptionValueException {
- try {
- return new Integer(arg);
- } catch (NumberFormatException var4) {
- throw new CmdLineParser.IllegalOptionValueException(this, arg);
- }
- }
- }
-