private int extractArgName(int index,String working){
  for (int i=index; i < working.length(); i++) {
    char c=working.charAt(i);
    if (c == ' ')     return i;
    if (c == '=')     return i;
  }
  return -1;
}

private int extractArgName ( int index , String working ) { for ( int i = index ; i < working . length ( ) ; i ++ ) { char c = working . charAt ( i ) ; if ( c == ' ' ) return i ; if ( c == '=' ) return i ; } return - 1 ; }
find the index of the start of the argument name . the name must end with either a - or a space .
