line = parser.parse( options, args );
if (line.getArgs().length != 0) {
throw new ParseException("Unexpected options");
}
} catch (ParseException pe) {
HelpFormatter formatter = new HelpFormatter();
formatter.printHelp("TestFileAppend2", options);
throw pe;
}
TestFileAppend2 tfa2 = new TestFileAppend2();
tfa2.numDatanodes = Integer.parseInt(