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
@@ -49,7 +49,11 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
@Argument(value = "-no-reflect", description = "Don't automatically include Kotlin reflection into the classpath")
var noReflect: Boolean by FreezableVar(false)
@Argument(value = "-Xexpression", description = "Evaluate the given string as a Kotlin script")
@Argument(
value = "-expression",
shortName = "-e",
description = "Evaluate the given string as a Kotlin script"
)
var expression: String? by FreezableVar(null)
@Argument(