cli.addOption("substring", false,
"The number of chars of the FormatString() to print", "number");
cli.addOption("count", false, "Report the count only", "number");
cli.addOption("help", false, "Print out help", "class");
Parser parser = cli.createParser();
try {
HamaConfiguration conf = new HamaConfiguration();
//GenericOptionsParser genericParser = new GenericOptionsParser(conf, args);
CommandLine cmdLine = parser.parse(cli.options, args);
// genericParser.getRemainingArgs());
LOG.debug("DEBUG: Arguments: " + args); //genericParser.getRemainingArgs());
if (cmdLine.hasOption("help")) {
cli.printUsage();