Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ class ScalacOption(
val args: List[String],
val isSupported: ScalaVersion => Boolean
) {

/** Return this `ScalacOption` as a `Seq[String]`, useful for directly setting values with your
* preferred build tool.
*/
def toSeq: Seq[String] =
(option :: args).toSeq

override def hashCode(): Int =
41 * option.hashCode

Expand All @@ -41,7 +48,7 @@ class ScalacOption(
}

override def toString: String =
(option :: args).mkString("ScalacOption(", " ", ")")
toSeq.mkString("ScalacOption(", " ", ")")
}

object ScalacOption {
Expand Down