Skip to content

Commit 868e733

Browse files
authored
Fix error output since --version has been replaced with --project-version (#2497)
1 parent 8e04d08 commit 868e733

File tree

1 file changed

+1
-1
lines changed
  • modules/cli/src/main/scala/scala/cli/commands/publish

1 file changed

+1
-1
lines changed

modules/cli/src/main/scala/scala/cli/commands/publish/Publish.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ object Publish extends ScalaCommand[PublishOptions] with BuildCommandHelpers {
381381
if (mayDefaultToGitTag) Some(ComputeVersion.GitTag(os.rel, dynVer = false, positions = Nil))
382382
else None
383383
def defaultVersionError =
384-
new MissingPublishOptionError("version", "--version", "publish.version")
384+
new MissingPublishOptionError("version", "--project-version", "publish.version")
385385
def defaultVersion: Either[BuildException, String] =
386386
Left(defaultVersionError)
387387

0 commit comments

Comments
 (0)