Package org.flasby.cli
Class IntegerOption
java.lang.Object
org.flasby.cli.IntegerOption
adaptor to get an Integer from a commandline option.
IntegerOption size = new IntegerOption( options.create( 's', "size", true ));
CommandLine cmd = parser.parse(...); Integer s = size.getIntegerValue( cmd );
If this is derived from an optional argument, then it will provide the default value
if one is defined. Otherwise it will reeturn null.- Author:
- Steve Flasby 05-Nov-2004
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IntegerOption
-
-
Method Details
-
getIntegerValue
- Throws:
InvalidOptionFormatException
-