diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-02-20 11:46:35 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-02-20 13:08:25 +0100 |
commit | ae43a298144842861bd8532b88aec7178c16ccb3 (patch) | |
tree | 763aa7881f4d71a562b27627d4e76df13b2416c5 /compiler/src/dotty/tools/dotc/config/CompilerCommand.scala | |
parent | 2f5b1f81bca206e7bfd684a41a2ade787ef2bc19 (diff) | |
download | dotty-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.scala | 3 |
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") |