public static FlagConfig parseFlagsFromString(String header){
  String[] args=header.split("\\s");
  return getFlagConfig(args);
}

public static FlagConfig parseFlagsFromString ( String header ) { String [ ] args = header . split ( "\\s" ) ; return getFlagConfig ( args ) ; }
parse flags from a single string . presumes that string contains only command line flags .
