private boolean parseFlags(String parameter) {
		boolean success = false;
		if (parameter.matches("-[^-]*v[^-]*")) {
			verboseMode = true;
			success = true;
		}
		if (parameter.matches("-[^-]*d[^-]*")) {
			devMode = true;
			success = true;
		}
		if (parameter.matches("-[^-]*n[^-]*")) {
			System.out.println("Disable GUI.");
			disableGui = true;
			success = true;
		}
		/* Log format: */
		if (parameter.matches("-[^-]*x[^-]*")) {
			System.out.println("Use XML for logging.");
			logFormat = LOG_FORMAT.XML;
			success = true;
		}
		if (parameter.matches("-[^-]*h[^-]*")) {
			System.out.println("Use HTML for logging.");
			logFormat = LOG_FORMAT.HTML;
			success = true;
		}
		return success;
	}