CLI: use "--" to separate free arguments from compiler options

#KT-9370 Fixed
This commit is contained in:
Alexander Udalov
2017-04-10 12:53:09 +03:00
parent baef649fe4
commit 8aba862e97
6 changed files with 36 additions and 13 deletions
@@ -57,6 +57,10 @@ public class CompilerSmokeTest extends CompilerSmokeTestBase {
runCompiler("script", "-script", "script.kts", "hi", "there");
}
public void testScriptDashedArgs() throws Exception {
runCompiler("script", "-script", "script.kts", "--", "hi", "-name", "Marty", "--", "there");
}
public void testScriptWithClasspath() throws Exception {
runCompiler("script", "-cp", new File("lib/javax.inject.jar").getAbsolutePath(), "-script", "script.kts");
}