code: protected static boolean matchOption(String given, String expect, boolean negative) {
  	int begin = 0, end = given.length();
  	if (begin < end && given.charAt(begin) == '-')
  	    ++begin;
  	if (negative && begin < end && given.charAt(begin) == '!')
  	    ++begin;
  	return expect.length() == end - begin && expect.regionMatches(0, given, begin, end - begin);
      }
docs: Match strings, ignoring leading <tt>-</tt>, <tt>-!</tt>, and <tt>!</tt>.
  
  @param given Given string
  @param expect Expected string
  @param negative May be negative
  @return {@code true} on success