code: protected void parseArguments(final Options options, String[] cmdArray) {
  		CommandLineParser parser = new PosixParser();
  		try {
  			CommandLine cmd = parser.parse(options, cmdArray);
  			Option[] opts = cmd.getOptions();
  			for (Option o : opts) {
  				arguments.put(o.getLongOpt(), o.getValue() == null ? "" : o.getValue());
  			}
  		} catch (ParseException e) {
  			if (LOGGER.isDebugEnabled()) {
  				LOGGER.debug(MSG_WRONG_ARGUMENT);
  			}
  			e.printStackTrace();
  		}
  	}
docs: parse arguments and add to arguments
  
  @param options
  @param cmdArray