public List<String[]> getAllResults(final Argument arg) {
    List<String[]> result = values.get(arg);

    if (result == null) {
      final String[] envVars = arg.getEnvVars();
      final String[] defaults = arg.getDefaults();
      final String[] vals = new String[arg.getParameterCount()];
      boolean found = defaults != null;

      for (int i = 0; i < arg.getParameterCount(); i++) {
        if (defaults != null) {
          vals[i] = defaults[i];
        }
        if (envVars != null) {
          String val = System.getenv(envVars[i]);
          if (val != null) {
            found = true;
            vals[i] = val;
          }
        }
      }

      if (found) {
        result = new ArrayList<>();
        result.add(vals);
      }
    }
    return result;
  }
Returns all results for the specified argument. If a command line option is specified more than
once, this is the method to use to get all values.

@param arg argument to query
@return list of all parameter lists defined for this argument
extensions/geode-modules-session/src/main/java/org/apache/geode/modules/session/installer/args/ArgumentValues.java