protected static String makeOptionString(Script script){
  StringBuffer result;
  Enumeration<Option> enm;
  Option option;
  result=new StringBuffer("");
  result.append("\nHelp requested:\n\n");
  result.append("-h or -help\n");
  result.append("\tDisplays this help screen.\n");
  result.append("-s <file>\n");
  result.append("\tThe script to execute.\n");
  enm=script.listOptions();
  while (enm.hasMoreElements()) {
    option=enm.nextElement();
    result.append(option.synopsis() + '\n');
    result.append(option.description() + "\n");
  }
  result.append("\n");
  result.append("Any additional options are passed on to the script as\n");
  result.append("command-line parameters.\n");
  result.append("\n");
  return result.toString();
}

protected static String makeOptionString ( Script script ) { StringBuffer result ; Enumeration < Option > enm ; Option option ; result = new StringBuffer ( "" ) ; result . append ( "\nHelp requested:\n\n" ) ; result . append ( "-h or -help\n" ) ; result . append ( "\tDisplays this help screen.\n" ) ; result . append ( "-s <file>\n" ) ; result . append ( "\tThe script to execute.\n" ) ; enm = script . listOptions ( ) ; while ( enm . hasMoreElements ( ) ) { option = enm . nextElement ( ) ; result . append ( option . synopsis ( ) + '\n' ) ; result . append ( option . description ( ) + "\n" ) ; } result . append ( "\n" ) ; result . append ( "Any additional options are passed on to the script as\n" ) ; result . append ( "command-line parameters.\n" ) ; result . append ( "\n" ) ; return result . toString ( ) ; }
make up the help string giving all the command line options .
