Home / Function/ OptionHelpAdapter() — spring-boot Function Reference

OptionHelpAdapter() — spring-boot Function Reference

Architecture documentation for the OptionHelpAdapter() function in OptionHandler.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  53b4320f_033e_92f1_9146_59f3f367d7bb["OptionHelpAdapter()"]
  13652b7d_f9d8_000b_109c_250e4769f917["format()"]
  13652b7d_f9d8_000b_109c_250e4769f917 -->|calls| 53b4320f_033e_92f1_9146_59f3f367d7bb
  72c188a0_4103_8650_a18d_d0e58bae59e0["options()"]
  53b4320f_033e_92f1_9146_59f3f367d7bb -->|calls| 72c188a0_4103_8650_a18d_d0e58bae59e0
  style 53b4320f_033e_92f1_9146_59f3f367d7bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/options/OptionHandler.java lines 179–190

		OptionHelpAdapter(OptionDescriptor descriptor) {
			this.options = new LinkedHashSet<>();
			for (String option : descriptor.options()) {
				String prefix = (option.length() != 1) ? "--" : "-";
				this.options.add(prefix + option);
			}
			if (this.options.contains("--cp")) {
				this.options.remove("--cp");
				this.options.add("-cp");
			}
			this.description = descriptor.description();
		}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does OptionHelpAdapter() do?
OptionHelpAdapter() is a function in the spring-boot codebase.
What does OptionHelpAdapter() call?
OptionHelpAdapter() calls 1 function(s): options.
What calls OptionHelpAdapter()?
OptionHelpAdapter() is called by 1 function(s): format.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free