@Override
	public Set<? extends Option> getSupportedOptions() {
		return Set.of(new Option() {
			@Override
			public int getArgumentCount() {
				return 1;
			}

			@Override
			public String getDescription() {
				return "the destination directory";
			}

			@Override
			public Kind getKind() {
				return Option.Kind.STANDARD;
			}

			@Override
			public List<String> getNames() {
				return Arrays.asList("-d");
			}

			@Override
			public String getParameters() {
				return "directory";
			}

			@Override
			public boolean process(String option, List<String> arguments) {
				destDir = new File(arguments.get(0)).getAbsoluteFile();
				return true;
			}

		},
			new Option() {
				@Override
				public int getArgumentCount() {
					return 0;
				}

				@Override
				public String getDescription() {
					return "enables Ghidra specific output";
				}

				@Override
				public Kind getKind() {
					return Option.Kind.OTHER;
				}

				@Override
				public List<String> getNames() {
					return Arrays.asList("-ghidra");
				}

				@Override
				public String getParameters() {
					return "";
				}

				@Override
				public boolean process(String option, List<String> arguments) {
					ghidraMode = true;
					return true;
				}

			},
			new Option() {
				@Override
				public int getArgumentCount() {
					return 0;
				}

				@Override
				public String getDescription() {
					return "enables generation of properties from get/set/is methods";
				}

				@Override
				public Kind getKind() {
					return Option.Kind.OTHER;
				}

				@Override
				public List<String> getNames() {
					return Arrays.asList("-properties");
				}

				@Override
				public String getParameters() {
					return "";
				}

				@Override
				public boolean process(String option, List<String> arguments) {
					useProperties = true;
					return true;
				}

			});
	}
Doclet that outputs Python pyi files.<p/>

To run: gradle createPythonTypeStubs
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/typestubs/PythonTypeStubDoclet.java