Switch cli expression evaluation argument syntax to -expression/-e
#KT-35414 fixed
This commit is contained in:
@@ -151,7 +151,8 @@ class ExpressionRunner(private val code: String) : RunnerWithCompiler() {
|
||||
override fun run(classpath: List<URL>, arguments: List<String>, compilerClasspath: List<URL>) {
|
||||
val compilerArgs = ArrayList<String>().apply {
|
||||
addClasspathArgIfNeeded(classpath)
|
||||
add("-Xexpression=$code")
|
||||
add("-expression")
|
||||
add(code)
|
||||
addAll(arguments)
|
||||
}
|
||||
runCompiler(compilerClasspath, compilerArgs)
|
||||
|
||||
Reference in New Issue
Block a user