private static Long parseCLIFlags(Long passwordFlags,
			CommandLine commandLine) {

		List<ICliFlag> clis = PwGeneratorFlagBuilder.getCliFlags();
		for (ICliFlag cli : clis) {

			if (commandLine.hasOption(cli.cliShort())) {
				passwordFlags = cli.mask(passwordFlags);
				LOGGER.fine("Enabling flag: " + cli);
			}

			if (cli.cliShortDisable() != null
					&& commandLine.hasOption(cli.cliShortDisable())) {
				passwordFlags = cli.unmask(passwordFlags);
				LOGGER.fine("Disabling flag: " + cli);
			}
		}

		return passwordFlags;
	}