private static String getParameterValue(CommandLine cmd, String longName, char shortName) {

		String value = null;
		if (cmd.hasOption(longName)) {
			value = cmd.getOptionValue(longName);
		} else if (cmd.hasOption(shortName)) {
			value = cmd.getOptionValue(shortName);
		}

		return value;
	}