protected static String makeOptionString(DataGenerator generator){
  StringBuffer result;
  Enumeration<Option> enm;
  Option option;
  result=new StringBuffer();
  result.append("\nData Generator options:\n\n");
  enm=generator.listOptions();
  while (enm.hasMoreElements()) {
    option=enm.nextElement();
    if (isOnBlacklist(option.name())) {
      continue;
    }
    result.append(option.synopsis() + "\n" + option.description()+ "\n");
  }
  return result.toString();
}

protected static String makeOptionString ( DataGenerator generator ) { StringBuffer result ; Enumeration < Option > enm ; Option option ; result = new StringBuffer ( ) ; result . append ( "\nData Generator options:\n\n" ) ; enm = generator . listOptions ( ) ; while ( enm . hasMoreElements ( ) ) { option = enm . nextElement ( ) ; if ( isOnBlacklist ( option . name ( ) ) ) { continue ; } result . append ( option . synopsis ( ) + "\n" + option . description ( ) + "\n" ) ; } return result . toString ( ) ; }
returns all the options in a string
