code: public static Map<String, String> parseArgs(String[] args) {
          Map<String, String> argsMap = new HashMap<>();
          if (null == args || args.length == 0) {
              return argsMap;
          }
          for (String arg : args) {
              if (arg.startsWith("--") && arg.contains("=")) {
                  String[] param = arg.substring(2).split("=");
                  argsMap.put(param[0], param[1]);
              }
          }
          return argsMap;
      }
docs: --app.env=dev --server.port=9001