CLI: added "-printArgs" arguments to commandline compiler.

This commit is contained in:
Zalim Bashorov
2013-10-10 22:19:41 +04:00
parent 41d0a8be24
commit 0877dfc1bd
8 changed files with 107 additions and 18 deletions
@@ -144,13 +144,7 @@ public class CliTest {
@Test
public void printArguments() {
try {
System.setProperty("kotlin.print.cmd.args", "true");
executeCompilerCompareOutputJVM(new String[] {"-script", "compiler/testData/cli/hello.ktscript"});
}
finally {
System.clearProperty("kotlin.print.cmd.args");
}
executeCompilerCompareOutputJVM(new String[] {"-printArgs", "-script", "compiler/testData/cli/hello.ktscript"});
}
@Test