@@ -111,40 +111,18 @@ object Cli {
111
111
private val gitCfg : Opts [GitCfg ] =
112
112
(gitAuthor, gitAskPass, signCommits, signoff).mapN(GitCfg .apply)
113
113
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
-
121
114
private val forgeType = {
122
115
val help = ForgeType .all.map(_.asString).mkString(" One of " , " , " , " " ) +
123
116
s " ; default: ${GitHub .asString}"
124
- option[ForgeType ](name.forgeType, help).orElse(vcsType). withDefault(GitHub )
117
+ option[ForgeType ](name.forgeType, help).withDefault(GitHub )
125
118
}
126
119
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
-
134
120
private val forgeApiHost : Opts [Uri ] =
135
121
option[Uri ](name.forgeApiHost, s " API URL of the forge; default: ${GitHub .publicApiBaseUrl}" )
136
- .orElse(vcsApiHost)
137
122
.withDefault(GitHub .publicApiBaseUrl)
138
123
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
-
146
124
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" )
148
126
149
127
private val doNotFork : Opts [Boolean ] =
150
128
flag(" do-not-fork" , " Whether to not push the update branches to a fork; default: false" ).orFalse
0 commit comments