From 0813e6bc1cdc8dfc79d85826fe47609515e18a2c Mon Sep 17 00:00:00 2001 From: Maxim Manuylov Date: Sat, 28 Jul 2012 13:06:44 +0400 Subject: [PATCH] ability to print command line arguments via system property --- .../src/org/jetbrains/jet/cli/common/CLICompiler.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/jet/cli/common/CLICompiler.java b/compiler/cli/src/org/jetbrains/jet/cli/common/CLICompiler.java index 96e0f74b420..a4e67c95285 100644 --- a/compiler/cli/src/org/jetbrains/jet/cli/common/CLICompiler.java +++ b/compiler/cli/src/org/jetbrains/jet/cli/common/CLICompiler.java @@ -152,10 +152,12 @@ public abstract class CLICompiler { ExitCode rc = compiler.exec(System.out, args); if (rc != OK) { System.err.println("exec() finished with " + rc + " return code"); - //System.err.println("Command line arguments: "); - //for (String arg : args) { - // System.err.println(arg); - //} + if (Boolean.parseBoolean(System.getProperty("kotlin.print.cmd.args"))) { + System.err.println("Command line arguments: "); + for (String arg : args) { + System.err.println(arg); + } + } System.exit(rc.getCode()); } }