private Match checkMatch(final String argName, final Argument arg, final String[] params) {
    // Look for a matching form
    for (String form : arg.getForms()) {
      if (form.equals(argName) && arg.getParameterCount() == params.length) {
        return new Match(arg, form, params);
      }
    }

    return null;
  }
Checks to see if an rgument form matches the suppies parameter list.

@param argName argument name
@param arg argument
@param params parameters supplied
@return match object on match, null otherwise
extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/installer/args/ArgumentProcessor.java