mirror of https://github.com/sbt/sbt.git
handle empty arguments case correctly
This commit is contained in:
parent
a2300c7dc0
commit
4b43e070ca
|
|
@ -97,7 +97,7 @@ trait TaskSetup
|
|||
final case class Input(line: String, cursor: Option[Int])
|
||||
{
|
||||
lazy val (name, arguments) = line match { case Input.NameRegex(n, a) => (n, a); case _ => (line, "") }
|
||||
lazy val splitArgs = (arguments split """\s+""").toSeq
|
||||
lazy val splitArgs: Seq[String] = if(arguments.isEmpty) Nil else (arguments split """\s+""").toSeq
|
||||
}
|
||||
object Input
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue