Skip to content

Commit

Permalink
Fail on --vcs-* options
Browse files Browse the repository at this point in the history
This makes `--vcs-*` options unusable. If they are used, Scala Steward
will print a message and exit with an error.

This options are deprecated since #2916.
  • Loading branch information
fthomas committed Dec 10, 2023
1 parent b6162bc commit f221925
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ object Cli {
"vcs-type",
s"deprecated in favor of --${name.forgeType}",
visibility = Visibility.Partial
)
).validate(s"--vcs-type is deprecated; use --${name.forgeType} instead")(_ => false)

private val forgeType = {
val help = ForgeType.all.map(_.asString).mkString("One of ", ", ", "") +
Expand All @@ -120,7 +120,7 @@ object Cli {
"vcs-api-host",
s"deprecated in favor of --${name.forgeApiHost}",
visibility = Visibility.Partial
)
).validate(s"--vcs-api-host is deprecated; use --${name.forgeApiHost} instead")(_ => false)

private val forgeApiHost: Opts[Uri] =
option[Uri](name.forgeApiHost, s"API URL of the forge; default: ${GitHub.publicApiBaseUrl}")
Expand All @@ -132,7 +132,7 @@ object Cli {
"vcs-login",
s"deprecated in favor of --${name.forgeLogin}",
visibility = Visibility.Partial
)
).validate(s"--vcs-login is deprecated; use --${name.forgeLogin} instead")(_ => false)

private val forgeLogin: Opts[String] =
option[String](name.forgeLogin, "The user name for the forge").orElse(vcsLogin)
Expand Down

0 comments on commit f221925

Please sign in to comment.