File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -166,9 +166,8 @@ object MainGenericRunner {
166
166
.withTargetScript(arg)
167
167
.withScriptArgs(tail* )
168
168
else
169
- val modalSettings = if arg.startsWith(" -" ) then settings else settings.withPossibleEntryPaths(arg).withModeShouldBePossibleRun
170
- val newSettings = modalSettings.withResidualArgs(arg)
171
- process(tail, newSettings)
169
+ val newSettings = if arg.startsWith(" -" ) then settings else settings.withPossibleEntryPaths(arg).withModeShouldBePossibleRun
170
+ process(tail, newSettings.withResidualArgs(arg))
172
171
end process
173
172
174
173
def main (args : Array [String ]): Unit =
@@ -200,8 +199,7 @@ object MainGenericRunner {
200
199
Option .when(Jar .isJarOrZip(dotty.tools.io.Path (entryPath)))(Jar (entryPath).mainClass).flatten
201
200
}.isDefined
202
201
}
203
- val newSettings =
204
- targetToRun match
202
+ val newSettings = targetToRun match
205
203
case Some (fqName) =>
206
204
settings.withTargetToRun(fqName).copy(residualArgs = settings.residualArgs.filterNot(fqName.== )).withExecuteMode(ExecuteMode .Run )
207
205
case None =>
You can’t perform that action at this time.
0 commit comments