import complete.Parser

// https://www.scala-sbt.org/1.x/docs/Input-Tasks.html

val run2 = inputKey[Unit](
    "Runs the main class twice with different argument lists separated by --")
val check = taskKey[Unit]("")

val separator: Parser[String] = "--"

lazy val root = (project in file(".")).
  settings(
    name := "run-test",
    run2 := {
       val one = (Compile / run).evaluated
       val sep = separator.parsed
       val two = (Compile / run).evaluated
    },
    check := {
      val x = run2.toTask(" a b -- c d").value
    }
  )
