private String[] getSubArguments(String[] args, int argi) {
		List<String> subArgs = new ArrayList<>();
		int i = argi + 1;
		while (i < args.length && !isExistingArg(args[i])) {
			subArgs.add(args[i++]);
		}
		return subArgs.toArray(new String[subArgs.size()]);
	}
Prints out the usage details and exits the Java application with an exit code that
indicates error.

@param execCmd the command used to run the headless analyzer from the calling method.
Ghidra/Features/Base/src/main/java/ghidra/app/util/headless/AnalyzeHeadless.java