"The output file. If not specified, dumps to the console", "path");
cli.addOption("substring", false,
"The number of chars of the FormatString() to print", "number");
cli.addOption("count", false, "Report the count only", "number");
Parser parser = cli.createParser();
try {
HamaConfiguration conf = new HamaConfiguration();
CommandLine cmdLine = parser.parse(cli.options, args);
if (cmdLine.hasOption("file")) {
Path path = new Path(cmdLine.getOptionValue("file"));
FileSystem fs = FileSystem.get(path.toUri(), conf);