code: private String getTagValue(String tag, String[] input, String defaultValue) {
  		for (String arg : input) {
  			Matcher matcher = CommandLineArgs.pattern.matcher(arg);
  			// Get tagname and contents of tag
  			if (matcher.find()) {
  				String tagname = matcher.group(1);
  				if (tag.equals(tagname)) {
  					return matcher.group(2);
  				}
  			}
  		}
  		return defaultValue;
  	}
docs: /*
  Parses the string array, input, looking for a pattern tag=value
  
  @param tag the tag to search for
  
  @param input the array list
  
  @param defaultValue the default value if tag is not found
  
  @return tha value