@@ -111,40 +111,18 @@ object Cli {
111111 private val gitCfg : Opts [GitCfg ] =
112112 (gitAuthor, gitAskPass, signCommits, signoff).mapN(GitCfg .apply)
113113
114- private val vcsType =
115- option[ForgeType ](
116- " vcs-type" ,
117- s " deprecated in favor of -- ${name.forgeType}" ,
118- visibility = Visibility .Partial
119- ).validate(s " --vcs-type is deprecated; use -- ${name.forgeType} instead " )(_ => false )
120-
121114 private val forgeType = {
122115 val help = ForgeType .all.map(_.asString).mkString(" One of " , " , " , " " ) +
123116 s " ; default: ${GitHub .asString}"
124- option[ForgeType ](name.forgeType, help).orElse(vcsType). withDefault(GitHub )
117+ option[ForgeType ](name.forgeType, help).withDefault(GitHub )
125118 }
126119
127- private val vcsApiHost =
128- option[Uri ](
129- " vcs-api-host" ,
130- s " deprecated in favor of -- ${name.forgeApiHost}" ,
131- visibility = Visibility .Partial
132- ).validate(s " --vcs-api-host is deprecated; use -- ${name.forgeApiHost} instead " )(_ => false )
133-
134120 private val forgeApiHost : Opts [Uri ] =
135121 option[Uri ](name.forgeApiHost, s " API URL of the forge; default: ${GitHub .publicApiBaseUrl}" )
136- .orElse(vcsApiHost)
137122 .withDefault(GitHub .publicApiBaseUrl)
138123
139- private val vcsLogin =
140- option[String ](
141- " vcs-login" ,
142- s " deprecated in favor of -- ${name.forgeLogin}" ,
143- visibility = Visibility .Partial
144- ).validate(s " --vcs-login is deprecated; use -- ${name.forgeLogin} instead " )(_ => false )
145-
146124 private val forgeLogin : Opts [String ] =
147- option[String ](name.forgeLogin, " The user name for the forge" ).orElse(vcsLogin)
125+ option[String ](name.forgeLogin, " The user name for the forge" )
148126
149127 private val doNotFork : Opts [Boolean ] =
150128 flag(" do-not-fork" , " Whether to not push the update branches to a fork; default: false" ).orFalse
0 commit comments