Skip to content

Commit 03302bb

Browse files
committed
Add missing reference docs for *.javaOptions directives
1 parent 6c80fd0 commit 03302bb

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

modules/directives/src/main/scala/scala/build/preprocessing/directives/JavaOptions.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ import scala.cli.commands.SpecificationLevel
1212
@DirectiveExamples("//> using test.javaOpt -Dsomething=a")
1313
@DirectiveUsage(
1414
"//> using javaOpt _options_",
15-
"`//> using javaOpt` _options_"
15+
"""`//> using javaOpt` _options_
16+
|`//> using javaOptions` _options_`
17+
|
18+
|`//> using test.javaOpt` _options_
19+
|`//> using test.javaOptions` _options_`
20+
|""".stripMargin
1621
)
1722
@DirectiveDescription("Add Java options which will be passed when running an application.")
1823
@DirectiveLevel(SpecificationLevel.MUST)

website/docs/reference/directives.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,11 @@ Sets Java home used to run your application or tests
179179
Add Java options which will be passed when running an application.
180180

181181
`//> using javaOpt` _options_
182+
`//> using javaOptions` _options_`
183+
184+
`//> using test.javaOpt` _options_
185+
`//> using test.javaOptions` _options_`
186+
182187

183188
#### Examples
184189
`//> using javaOpt -Xmx2g -Dsomething=a`

website/docs/reference/scala-command/directives.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Add dependencies
7474
Add Java options which will be passed when running an application.
7575

7676
`//> using javaOpt` _options_
77+
`//> using javaOptions` _options_`
78+
79+
`//> using test.javaOpt` _options_
80+
`//> using test.javaOptions` _options_`
81+
7782

7883
#### Examples
7984
`//> using javaOpt -Xmx2g -Dsomething=a`

0 commit comments

Comments
 (0)