Class IntegerOption

java.lang.Object
org.flasby.cli.IntegerOption

public class IntegerOption extends Object
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