protected boolean matchCmdArg(String cmd, String arg) {
    String[] validArgs = cmdOptionsMap.get(cmd.toLowerCase());
    for (final String validArg : validArgs) {
      if (validArg.endsWith("=") || validArg.equals("-D") || validArg.equals("-X")) {
        if (arg.toLowerCase().startsWith(validArg) || arg.startsWith(validArg)) {
          String argValue = arg.substring(validArg.length());
          if (validArg.equals("-dir=")) {
            sysDirName = argValue;
          } else if (validArg.equals("-archive=")) {
            archiveOption.add(new File(argValue));
          } else if (validArg.equals("-port=")) {
            portOption = argValue;
          } else if (validArg.equals("-address=")) {
            addressOption = argValue;
          } else if (validArg.equals("-region=")) {
            regionOption = argValue;
          } else if (validArg.equals("-maxOplogSize=")) {
            maxOplogSize = parseLong(argValue);
          } else if (validArg.equals("-lru=")) {
            lruOption = argValue;
          } else if (validArg.equals("-lruAction=")) {
            lruActionOption = argValue;
          } else if (validArg.equals("-lruLimit=")) {
            lruLimitOption = argValue;
          } else if (validArg.equals("-concurrencyLevel=")) {
            concurrencyLevelOption = argValue;
          } else if (validArg.equals("-initialCapacity=")) {
            initialCapacityOption = argValue;
          } else if (validArg.equals("-loadFactor=")) {
            loadFactorOption = argValue;
          } else if (validArg.equals("-compressor=")) {
            compressorClassNameOption = argValue;
          } else if (validArg.equals("-statisticsEnabled=")) {
            statisticsEnabledOption = argValue;
          } else if (validArg.equals("-properties=")) {
            gemfirePropertiesFileOption = argValue;
          } else if (validArg.equals("-out=")) {
            outOption = argValue;
          } else if (validArg.equals("-starttime=")) {
            startTime = parseTime(argValue);
          } else if (validArg.equals("-endtime=")) {
            endTime = parseTime(argValue);
          } else if (validArg.equals("-peer=")) {
            peerOption = "true".equalsIgnoreCase(argValue);
          } else if (validArg.equals("-server=")) {
            serverOption = "true".equalsIgnoreCase(argValue);
          } else if (validArg.equals("-hostname-for-clients=")) {
            hostnameForClientsOption = argValue;
          } else if (validArg.equals("-D")) {
            int idx = argValue.indexOf('=');
            String key = argValue.substring(0, idx);
            String value = argValue.substring(idx + 1);
            propertyOption.setProperty(key, value);
          } else if (validArg.equals("-X")) {
            xoptions.add(arg);
          } else if (validArg.equals("-baseline=")) {
            baselineDir = argValue;
          } else if (validArg.equals("-outputDir=")) {
            outputDir = argValue;
          } else {
            throw new InternalGemFireException(
                String.format("unexpected valid option %s",
                    validArg));
          }
          return true;
        }
      } else if (validArg.equalsIgnoreCase(arg)) {
        if (validArg.equals("-h") || validArg.toLowerCase().matches("-{0,2}help")) {
          help = true;
        } else if (validArg.equals("-debug")) {
          debug = true;
        } else if (validArg.equals("-remove")) {
          remove = true;
        } else if (validArg.equals("-q")) {
          quiet = true;
        } else if (validArg.equals("-details")) {
          details = true;
        } else if (validArg.equals("-nofilter")) {
          nofilter = true;
        } else if (validArg.equals("-persec")) {
          persec = true;
        } else if (validArg.equals("-persample")) {
          persample = true;
        } else if (validArg.equals("-prunezeros")) {
          prunezeros = true;
        } else if (validArg.equals("-monitor")) {
          monitor = true;
        } else if (validArg.equalsIgnoreCase("-buckets")) {
          showBuckets = true;
        } else if (validArg.equals("-all-threads")) {
          printStacksOption = arg;
        } else {
          throw new InternalGemFireException(String.format("unexpected valid option %s",
              validArg));
        }
        return true;
      }
    }
    return false;
  }
Represents a list of ResourceInst that have been combined together. Note the most common case
is for this class to only own a single ResourceInst.
geode-core/src/main/java/org/apache/geode/internal/SystemAdmin.java