OptionParser parser=new OptionParser(ExtractIsAOptions.class);
applicationContext.getAutowireCapableBeanFactory().autowireBean(parser);
ExtractIsAOptions options=(ExtractIsAOptions) parser.parse(Lists.newArrayList(strings));
if (options.input.isEmpty())
throw new UsageException("You did not specify a value for -input");
if (options.output==null || options.output.isEmpty())
throw new UsageException("You did not specify a value for -output");
if (options.type.isEmpty())
throw new UsageException("You did not specify a value for -type");
if(options.reducerCount<1) {
options.reducerCount=1;
}
return options;