ability to print command line arguments via system property
This commit is contained in:
committed by
Evgeny Gerashchenko
parent
7eba14bcf1
commit
0813e6bc1c
@@ -152,10 +152,12 @@ public abstract class CLICompiler<A extends CompilerArguments> {
|
|||||||
ExitCode rc = compiler.exec(System.out, args);
|
ExitCode rc = compiler.exec(System.out, args);
|
||||||
if (rc != OK) {
|
if (rc != OK) {
|
||||||
System.err.println("exec() finished with " + rc + " return code");
|
System.err.println("exec() finished with " + rc + " return code");
|
||||||
//System.err.println("Command line arguments: ");
|
if (Boolean.parseBoolean(System.getProperty("kotlin.print.cmd.args"))) {
|
||||||
//for (String arg : args) {
|
System.err.println("Command line arguments: ");
|
||||||
// System.err.println(arg);
|
for (String arg : args) {
|
||||||
//}
|
System.err.println(arg);
|
||||||
|
}
|
||||||
|
}
|
||||||
System.exit(rc.getCode());
|
System.exit(rc.getCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user