Support whitespace after --sbt-script

`=` gets treated as a whitespace in batch, so it would be good to support whitespace.
This commit is contained in:
Eugene Yokota 2020-09-20 22:07:08 -04:00
parent 6ebbbe5e0a
commit b631dffed6
1 changed files with 3 additions and 0 deletions

View File

@ -998,6 +998,9 @@ object NetworkClient {
completionArguments += a
case a if a.startsWith("--sbt-script=") =>
sbtScript = a.split("--sbt-script=").lastOption.getOrElse(sbtScript)
case "--sbt-script" if i + 1 < sanitized.length =>
i += 1
sbtScript = sanitized(i)
case a if !a.startsWith("-") => commandArgs += a
case a @ SysProp(key, value) =>
System.setProperty(key, value)