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
@@ -50,7 +50,7 @@ class ScriptingWithCliCompilerTest {
fun testExpression() {
runWithK2JVMCompiler(
arrayOf(
"-Xexpression",
"-expression",
"val x = 7; println(x * 6); for (arg in args) println(arg)",
"--",
"hi",
@@ -64,7 +64,7 @@ class ScriptingWithCliCompilerTest {
fun testExpressionWithComma() {
runWithK2JVMCompiler(
arrayOf(
"-Xexpression",
"-expression",
"listOf(1,2)"
),
listOf("\\[1, 2\\]")