@Override
	public int match(String[] argsToTest) {

		for (String testArg : argsToTest) {
			if (isCommandArg(testArg)) {

				boolean argIsOK = false;
				for (String allowedElem : allowed) {
					if (testArg.equals(allowedElem)) {
						argIsOK = true;
					}
				}
				if (!argIsOK) {
					addMismatch(testArg);
				}
			}
		}

		if (hasMismatches()) {
			return Constants.ERROR;
		}
		return Constants.OK;
	}