HelpFormatter formatter = new HelpFormatter();
formatter.setGroup(group);
formatter.setPrintWriter(pw);
formatter.printHelp();
formatter.setFooter("Specify HDFS directories while running on hadoop; else specify local file system directories");
formatter.printFooter();
pw.flush();
}
public static void printHelpWithGenericOptions(Group group, OptionException oe) throws IOException {