Option collapseOpt = obuilder.withLongName("collapse").withRequired(true).withArgument(
abuilder.withName("collapse").withMinimum(1).withMaximum(1).create()).withDescription(
"Collapse a whole directory to a single file, one doc per line").withShortName("p").create();
Option helpOpt = DefaultOptionCreator.helpOption();
Group group = gbuilder.withName("Options").withOption(inputOpt).withOption(outputOpt).withOption(labelOpt)
.withOption(analyzerOpt).withOption(charsetOpt).withOption(collapseOpt).withOption(helpOpt).create();
try {
Parser parser = new Parser();
parser.setGroup(group);
CommandLine cmdLine = parser.parse(args);