Skip to content

Commit 404763c

Browse files
committed
Add --jar-sources and --sources-jar as aliases for --src
1 parent 62b4b29 commit 404763c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/cli/src/main/scala/scala/cli/commands/package0/PackageOptions.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ final case class PackageOptions(
4848
library: Boolean = false,
4949
@Group(HelpGroup.Package.toString)
5050
@HelpMessage("Generate a source JAR rather than an executable JAR")
51+
@Name("sourcesJar")
52+
@Name("jarSources")
5153
@Name("sources")
5254
@Name("source")
5355
@Tag(tags.deprecated("source")) // alias to be removed in 1.6.x

website/docs/reference/cli-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ Generate a library JAR rather than an executable JAR
751751

752752
### `--src`
753753

754-
Aliases: [deprecated] `--source`, `--sources`
754+
Aliases: `--jar-sources`, [deprecated] `--source`, `--sources`, `--sources-jar`
755755

756756
Generate a source JAR rather than an executable JAR
757757

0 commit comments

Comments
 (0)