Files
spring-shell/spring-shell-docs/modules/ROOT/pages/using-shell-options-basics-annotation.adoc
2023-08-03 15:25:32 -05:00

14 lines
380 B
Plaintext

[[using-shell-options-basics-annotation]]
= Annotation
:page-section-summary-toc: 1
ifndef::snippets[:snippets: ../../test/java/org/springframework/shell/docs]
`Option` annotation can be used to define an option name if you
don't want it to be same as argument name.
[source, java, indent=0]
----
include::{snippets}/OptionSnippets.java[tag=option-with-option-annotation]
----