code: public static Map<String, String> fromPosixArray(Iterable<String> args) {
      Map<String, String> kvMap = Maps.newHashMap();
      for (String arg : args) {
        kvMap.putAll(Splitter.on("--").omitEmptyStrings().trimResults().withKeyValueSeparator("=").split(arg));
      }
      return kvMap;
    }
docs: Converts a POSIX compliant program argument array to a String-to-String Map.
  @param args Array of Strings where each element is a POSIX compliant program argument (Ex: "--os=Linux" ).
  @return Map of argument Keys and Values (Ex: Key = "os" and Value = "Linux").