Switch cli expression evaluation argument syntax to -expression/-e

#KT-35414 fixed
This commit is contained in:
Ilya Chernikov
2020-01-14 08:11:13 +01:00
parent 5f15cacb1b
commit 891914167a
6 changed files with 12 additions and 6 deletions
@@ -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)