CLI: use "--" to separate free arguments from compiler options
#KT-9370 Fixed
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user