// Use the JSAP library to intelligently set up and parse our command
// line options
JSAP jsap = new JSAP();
UnflaggedOption opt0 = new UnflaggedOption("indexDir").setStringParser(
JSAP.STRING_PARSER).setRequired(true);
opt0.setHelp("The directory containing the pre-build Lucene index.");
UnflaggedOption opt0a = new UnflaggedOption("LDAIndexDir").setStringParser(
JSAP.STRING_PARSER).setRequired(true);
opt0a.setHelp("The directory containing the pre-build LDA index.");
UnflaggedOption opt1 = new UnflaggedOption("queryDir").setStringParser(
JSAP.STRING_PARSER).setRequired(true);
opt1.setHelp("The input directory containing queries to run against the specified index.");
UnflaggedOption opt2 = new UnflaggedOption("resultsDir").setStringParser(
JSAP.STRING_PARSER).setRequired(true);
opt2.setHelp("The output directory for the results of each query: one file per original query in queryDirName.");
FlaggedOption opt3 = new FlaggedOption("K")
.setStringParser(JSAP.INTEGER_PARSER).setRequired(false)
.setLongFlag("K").setDefault("0");
opt3.setHelp("If multiple LDA configuration were run (i.e., multiple Ks), then specify which one to use."