From 4146327bbd6b8e5468c05a570a9190c99c4285e3 Mon Sep 17 00:00:00 2001 From: michelou Date: Thu, 20 Jul 2006 15:24:23 +0000 Subject: fsc prints more info messages with -verbose option --- src/compiler/scala/tools/nsc/CompileClient.scala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/compiler/scala/tools/nsc/CompileClient.scala') diff --git a/src/compiler/scala/tools/nsc/CompileClient.scala b/src/compiler/scala/tools/nsc/CompileClient.scala index 9e24a67d72..2b571741bd 100644 --- a/src/compiler/scala/tools/nsc/CompileClient.scala +++ b/src/compiler/scala/tools/nsc/CompileClient.scala @@ -14,6 +14,8 @@ import java.io._ */ object CompileClient { + var verbose = false + def normalize(args: Array[String]): Pair[String, String] = { def absFileName(path: String) = new File(path).getAbsolutePath() def absFileNames(paths: String) = { @@ -35,6 +37,8 @@ object CompileClient { } else if (arg startsWith "-J") { vmArgs append " -"+arg.substring(2) args(i) = "" + } else if (arg == "-verbose") { + verbose = true } i = i + 1 if (i < args.length) { @@ -57,7 +61,7 @@ object CompileClient { def main(args: Array[String]): unit = { val Pair(vmArgs, serverAdr) = normalize(args) - if (args.toList contains "-verbose") { + if (verbose) { System.out.println("[Server arguments: " + args.mkString("", " ", "]")) System.out.println("[VM arguments: " + vmArgs + "]") } -- cgit v1.2.3