summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/cmd/CommandLine.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2013-06-24 13:55:02 -0700
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-06-25 08:56:54 -0700
commitd863c7152cf8c363b4f9c086c62d28b37baf07ea (patch)
treeaa4199b059aa7632f268ab41fc3dac42507f8489 /src/compiler/scala/tools/cmd/CommandLine.scala
parent2a17db002758379fe0b9ee2a4e41ac9e3ca6c30d (diff)
downloadscala-d863c7152cf8c363b4f9c086c62d28b37baf07ea.tar.gz
scala-d863c7152cf8c363b4f9c086c62d28b37baf07ea.tar.bz2
scala-d863c7152cf8c363b4f9c086c62d28b37baf07ea.zip
Remove dependency on combinators from CommandLinerParser.
tools.cmd.CommandLineParser uses a small hand-rolled parser TODO: replace partest's usage of scala.tools.nsc.util.CommandLine by scala.tools.cmd.CommandLine
Diffstat (limited to 'src/compiler/scala/tools/cmd/CommandLine.scala')
-rw-r--r--src/compiler/scala/tools/cmd/CommandLine.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/cmd/CommandLine.scala b/src/compiler/scala/tools/cmd/CommandLine.scala
index e8ac882ee6..e44752eb6e 100644
--- a/src/compiler/scala/tools/cmd/CommandLine.scala
+++ b/src/compiler/scala/tools/cmd/CommandLine.scala
@@ -16,7 +16,7 @@ trait CommandLineConfig {
/** An instance of a command line, parsed according to a Spec.
*/
class CommandLine(val spec: Reference, val originalArgs: List[String]) extends CommandLineConfig {
- def this(spec: Reference, line: String) = this(spec, Parser tokenize line)
+ def this(spec: Reference, line: String) = this(spec, CommandLineParser tokenize line)
def this(spec: Reference, args: Array[String]) = this(spec, args.toList)
import spec.{ isUnaryOption, isBinaryOption, isExpandOption }