diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-06-24 13:55:02 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-06-25 08:56:54 -0700 |
commit | d863c7152cf8c363b4f9c086c62d28b37baf07ea (patch) | |
tree | aa4199b059aa7632f268ab41fc3dac42507f8489 /src/compiler/scala/tools/cmd/CommandLine.scala | |
parent | 2a17db002758379fe0b9ee2a4e41ac9e3ca6c30d (diff) | |
download | scala-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.scala | 2 |
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 } |