"the segment(s) to use").create("segment");
options.addOption(helpOpts);
options.addOption(crawlDbOpts);
options.addOption(segOpts);
CommandLineParser parser = new GnuParser();
try {
// parse out common line arguments and make sure either a crawldb or a
// segment are specified
CommandLine line = parser.parse(options, args);
if (line.hasOption("help")
|| (!line.hasOption("crawldb") && !line.hasOption("segment"))) {
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("ReprUtilFixer", options);
return -1;