private boolean isOptionsSupported(String[] args) {
    boolean result = true;
    String hbaseServerVersion = status.getHBaseVersion();
    if (VersionInfo.compareVersion("2.any.any", hbaseServerVersion) < 0) {
      // Process command-line args.
      for (String arg : args) {
        if (unsupportedOptionsInV2.contains(arg)) {
          errors.reportError(ERROR_CODE.UNSUPPORTED_OPTION,
            "option '" + arg + "' is not " + "supported!");
          result = false;
          break;
        }
      }
    }
    return result;
  }
This is a Tool wrapper that gathers -Dxxx=yyy configuration settings from the command line.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java