public static HashMap<String, String> parseParam(String[] args) {
        HashMap<String, String> paraMap = new HashMap<String, String>();
        String currentParaName = null;
        if (args != null && args.length > 0) {
            int index = 0;
            while (index < args.length) {

                String param = args[index];
                if (param.startsWith("-") && param.length() > 1) {
                    if (currentParaName != null) {
                        paraMap.put(currentParaName, "true");
                    }

                    currentParaName = param.substring(1);
                } else {
                    if (currentParaName != null) {
                        paraMap.put(currentParaName, param);
                        currentParaName = null;
                    }
                }
                index++;
            }
        }

        if (currentParaName != null) {
            paraMap.put(currentParaName, "true");
        }
        return paraMap;
    }