diff --git a/modules/cli/src/main/scala/scala/cli/commands/package0/PackageOptions.scala b/modules/cli/src/main/scala/scala/cli/commands/package0/PackageOptions.scala index b3a578a89d..70744ebbdb 100644 --- a/modules/cli/src/main/scala/scala/cli/commands/package0/PackageOptions.scala +++ b/modules/cli/src/main/scala/scala/cli/commands/package0/PackageOptions.scala @@ -49,10 +49,9 @@ final case class PackageOptions( @Group(HelpGroup.Package.toString) @HelpMessage("Generate a source JAR rather than an executable JAR") @Name("sources") - @Name("src") @Tag(tags.restricted) @Tag(tags.inShortHelp) - source: Boolean = false, + src: Boolean = false, @Group(HelpGroup.Package.toString) @HelpMessage("Generate a scaladoc JAR rather than an executable JAR") @ExtraName("scaladoc") @@ -144,7 +143,7 @@ final case class PackageOptions( def packageTypeOpt: Option[PackageType] = forcedPackageTypeOpt.orElse { if (library) Some(PackageType.LibraryJar) - else if (source) Some(PackageType.SourceJar) + else if (src) Some(PackageType.SourceJar) else if (assembly) Some( PackageType.Assembly( addPreamble = preamble, diff --git a/modules/integration/src/test/scala/scala/cli/integration/BspTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/BspTestDefinitions.scala index 521e3bb5c1..eb316524cf 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/BspTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/BspTestDefinitions.scala @@ -1712,7 +1712,7 @@ abstract class BspTestDefinitions extends ScalaCliSuite with TestScalaVersionArg "--power", "package", jarSources, - "--source", + "--src", "-o", sourceJarPath, extraOptions diff --git a/modules/integration/src/test/scala/scala/cli/integration/PackageTestDefinitions.scala b/modules/integration/src/test/scala/scala/cli/integration/PackageTestDefinitions.scala index f92f18532d..23c5c331f8 100644 --- a/modules/integration/src/test/scala/scala/cli/integration/PackageTestDefinitions.scala +++ b/modules/integration/src/test/scala/scala/cli/integration/PackageTestDefinitions.scala @@ -859,7 +859,7 @@ abstract class PackageTestDefinitions extends ScalaCliSuite with TestScalaVersio test("source JAR") { val dest = os.rel / "sources.jar" simpleInputWithScalaAndSc.fromRoot { root => - os.proc(TestUtil.cli, "--power", "package", extraOptions, ".", "-o", dest, "--source").call( + os.proc(TestUtil.cli, "--power", "package", extraOptions, ".", "-o", dest, "--src").call( cwd = root, stdin = os.Inherit, stdout = os.Inherit diff --git a/website/docs/reference/cli-options.md b/website/docs/reference/cli-options.md index 21c6393bfa..05111544a1 100644 --- a/website/docs/reference/cli-options.md +++ b/website/docs/reference/cli-options.md @@ -749,9 +749,9 @@ Overwrite the destination file, if it exists Generate a library JAR rather than an executable JAR -### `--source` +### `--src` -Aliases: `--sources`, `--src` +Aliases: `--sources` Generate a source JAR rather than an executable JAR