public void setAnalysisOption(Program program, String optionName, String optionValue) {
		Options options = program.getOptions(Program.ANALYSIS_PROPERTIES);
		String errorMsg = setAnalysisOption(options, optionName, optionValue);

		if (errorMsg.length() > 0) {
			if (isRunningHeadless()) {
				Msg.error(this, errorMsg);
			}
			else {
				MultiLineMessageDialog.showMessageDialog(null, "Analysis Options",
					"Ghidra encountered error(s) when attempting to set analysis options.",
					errorMsg, MultiLineMessageDialog.WARNING_MESSAGE);
			}
		}
	}
Allows user to set one analysis option by passing in the analysis option to
be changed and the new value of that option. This method does the work of
converting the option value to its actual object type (if needed).

@param program  the program for which analysis options should be set
@param optionName  the name of the option to be set
@param optionValue  the new value of the option
Ghidra/Features/Base/src/main/java/ghidra/app/script/GhidraScript.java