public static Map<Option,String> parseOptions(String optionLine){
  Map<Option,String> options=new HashMap<Option,String>();
  for (  String s : optionLine.split("\\s+")) {
    if (s.length() > 0) {
      boolean valid=false;
      for (      OptionParser h : optionHandlers) {
        if (h.handle(options,s)) {
          valid=true;
          break;
        }
      }
      if (!valid) {
        throw new Profiler4JError("Unknown rule option '" + s + "'");
      }
    }
  }
  return options;
}

public static Map < Option , String > parseOptions ( String optionLine ) { Map < Option , String > options = new HashMap < Option , String > ( ) ; for ( String s : optionLine . split ( "\\s+" ) ) { if ( s . length ( ) > 0 ) { boolean valid = false ; for ( OptionParser h : optionHandlers ) { if ( h . handle ( options , s ) ) { valid = true ; break ; } } if ( ! valid ) { throw new Profiler4JError ( "Unknown rule option '" + s + "'" ) ; } } } return options ; }
parses a list of options represented as strings
