diff options
author | soc <simon@ochsenreither.de> | 2016-04-04 22:07:55 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-04-04 22:07:55 +0200 |
commit | d8aa2cdfb83de35cc0e427f26530195ccff46d51 (patch) | |
tree | b5eef2fc5066961b4cfa9b672c8e2212d38e7d50 /src/compiler/scala/tools/cmd/CommandLine.scala | |
parent | 3c466670d2526f4a1ff77e005fbc5b32cc31f52f (diff) | |
download | scala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.tar.gz scala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.tar.bz2 scala-d8aa2cdfb83de35cc0e427f26530195ccff46d51.zip |
General cleanups and less warnings during a Scala build
Diffstat (limited to 'src/compiler/scala/tools/cmd/CommandLine.scala')
-rw-r--r-- | src/compiler/scala/tools/cmd/CommandLine.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/cmd/CommandLine.scala b/src/compiler/scala/tools/cmd/CommandLine.scala index 781cc564cb..3a36a7d345 100644 --- a/src/compiler/scala/tools/cmd/CommandLine.scala +++ b/src/compiler/scala/tools/cmd/CommandLine.scala @@ -51,7 +51,7 @@ class CommandLine(val spec: Reference, val originalArgs: List[String]) extends C /* Assumes known options have all been ruled out already. */ def isUnknown(opt: String) = onlyKnownOptions && (opt startsWith "-") && { - errorFn("Option '%s' not recognized.".format(opt)) + errorFn(s"Option '$opt' not recognized.") true } @@ -61,7 +61,7 @@ class CommandLine(val spec: Reference, val originalArgs: List[String]) extends C case x :: Nil => expand(x) foreach (exp => return loop(exp)) if (isBinaryOption(x) && enforceArity) - errorFn("Option '%s' requires argument, found EOF instead.".format(x)) + errorFn(s"Option '$x' requires argument, found EOF instead.") if (isUnaryOption(x)) mapForUnary(x) else if (isUnknown(x)) Map() |