private void resolveContinuationOptionWith(HeadlessContinuationOption opt) {

		if (opt == null) {
			return;
		}

		switch (currentOption) {

			case CONTINUE:
				currentOption = opt;
				break;

			case CONTINUE_THEN_DELETE:
				switch (opt) {
					case ABORT:

					case ABORT_AND_DELETE:
						currentOption = HeadlessContinuationOption.ABORT_AND_DELETE;
						break;

					default:
						break;
				}
				break;

			case ABORT_AND_DELETE:
				// nothing changes
				break;

			case ABORT:
				// nothing changes
				break;
		}
	}
Resolve continuation options according to the table in 'analyzeHeadlessREADME.html'.
(See "Multiple Scripts" section).

@param opt  continuation option to combine with current continuation option
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/HeadlessScript.java