Here you can find the source of parseCommandLine(String[] args)
private static HashMap<String, String> parseCommandLine(String[] args)
//package com.java2s; //License from project: Apache License import java.util.HashMap; public class Main { private static HashMap<String, String> parseCommandLine(String[] args) { HashMap<String, String> configParameters = new HashMap<String, String>(); for (int i = 0; i < args.length; i++) { String[] nameValue = args[i].split("="); if (nameValue.length != 2) { System.err.println("Command line parameter is not in the form key=value: " + args[i]); System.exit(-1);//from w ww . j ava 2 s. com } configParameters.put(nameValue[0], nameValue[1]); } return configParameters; } }