aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config/CompilerCommand.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-05-20 10:10:44 +0200
committerMartin Odersky <odersky@gmail.com>2015-05-21 17:41:16 +0200
commit1746ae11926e2f09ed50e62273669b6196e60547 (patch)
treead2d13692f662c318bbd0fbf8b0fb9e493664d32 /src/dotty/tools/dotc/config/CompilerCommand.scala
parentde7a5bb049fadaa2078107358e51de273a15d515 (diff)
downloaddotty-1746ae11926e2f09ed50e62273669b6196e60547.tar.gz
dotty-1746ae11926e2f09ed50e62273669b6196e60547.tar.bz2
dotty-1746ae11926e2f09ed50e62273669b6196e60547.zip
Rename Reporter#echo -> println
More refular that way. Also, change some raw printlns in low-level code to reporter.printlns in order to harden them against prints over prints.
Diffstat (limited to 'src/dotty/tools/dotc/config/CompilerCommand.scala')
-rw-r--r--src/dotty/tools/dotc/config/CompilerCommand.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/config/CompilerCommand.scala b/src/dotty/tools/dotc/config/CompilerCommand.scala
index 629042291..3ba8db3ba 100644
--- a/src/dotty/tools/dotc/config/CompilerCommand.scala
+++ b/src/dotty/tools/dotc/config/CompilerCommand.scala
@@ -110,19 +110,19 @@ object CompilerCommand extends DotClass {
if (summary.errors.nonEmpty) {
summary.errors foreach (ctx.error(_))
- ctx.echo(" dotc -help gives more information")
+ ctx.println(" dotc -help gives more information")
Nil
}
else if (settings.version.value) {
- ctx.echo(versionMsg)
+ ctx.println(versionMsg)
Nil
}
else if (shouldStopWithInfo) {
- ctx.echo(infoMessage)
+ ctx.println(infoMessage)
Nil
} else {
if (summary.arguments.isEmpty && !settings.resident.value)
- ctx.echo(usageMessage)
+ ctx.println(usageMessage)
summary.arguments
}
}