public static void main(String [] args) { StringBuffer text = new StringBuffer(); try{ LibSVMSaver saver = new LibSVMSaver(); text.append( "\n\n" + saver.getClass().getName().replaceAll(".*\\.", "") + " options:\n\n"); Enumeration enm = saver.listOptions(); while (enm.hasMoreElements()) { Option option = (Option) enm.nextElement(); text.append(option.synopsis() + "\n"); text.append(option.description() + "\n"); }  try { saver.setOptions(args); } catch (Exception e) { System.out.println("\n" + text); System.exit(1); }  saver.writeBatch(); } catch (Exception e) { e.printStackTrace(); }
public static void main(String[] args) { runFileSaver(new LibSVMSaver(), args);
  public static void main(String [] args) {    StringBuffer text = new StringBuffer();    try{      LibSVMSaver saver = new LibSVMSaver();      text.append(	  "\n\n" 	  + saver.getClass().getName().replaceAll(".*\\.", "") 	  + " options:\n\n");      Enumeration enm = saver.listOptions();      while (enm.hasMoreElements()) {	Option option = (Option) enm.nextElement();	text.append(option.synopsis() + "\n");	text.append(option.description() + "\n");      }            try {	saver.setOptions(args);        }      catch (Exception e) {	System.out.println("\n" + text);	System.exit(1);      }            saver.writeBatch();    }    catch (Exception e) {      e.printStackTrace();    }  }