aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-02-20 11:46:35 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-02-20 13:08:25 +0100
commitae43a298144842861bd8532b88aec7178c16ccb3 (patch)
tree763aa7881f4d71a562b27627d4e76df13b2416c5 /compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
parent2f5b1f81bca206e7bfd684a41a2ade787ef2bc19 (diff)
downloaddotty-ae43a298144842861bd8532b88aec7178c16ccb3.tar.gz
dotty-ae43a298144842861bd8532b88aec7178c16ccb3.tar.bz2
dotty-ae43a298144842861bd8532b88aec7178c16ccb3.zip
Make non-existent compiler options emit warnings instead of failing
Diffstat (limited to 'compiler/src/dotty/tools/dotc/config/CompilerCommand.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/config/CompilerCommand.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala b/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
index 6e0c60555..c2301a3aa 100644
--- a/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
+++ b/compiler/src/dotty/tools/dotc/config/CompilerCommand.scala
@@ -104,6 +104,9 @@ object CompilerCommand extends DotClass {
else ""
}
+ // Print all warnings encountered during arguments parsing
+ summary.warnings.foreach(ctx.warning(_))
+
if (summary.errors.nonEmpty) {
summary.errors foreach (ctx.error(_))
ctx.echo(" dotc -help gives more information")