code: private void validateCommandParameters(final List<String> messages) {
          checkForUnexpectedCommandParameter(messages);
          checkForMissingCommandParameters(messages);
          checkForMalformedCommandParameters(messages);
      }
docs: Checks the command line for correctness and reports on unexpected, missing and/or malformed parameters.
  
  @param messages an array of Strings to which messages for issues found will be added