[minor] Change expression evaluation cli argument to -Xexpression
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ 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 = "-expression", description = "Evaluate the given string as a Kotlin script")
|
||||
@Argument(value = "-Xexpression", description = "Evaluate the given string as a Kotlin script")
|
||||
var expressions: Array<String>? by FreezableVar(null)
|
||||
|
||||
@Argument(
|
||||
|
||||
@@ -152,7 +152,7 @@ class ExpressionRunner(private val code: List<String>) : RunnerWithCompiler() {
|
||||
val compilerArgs = ArrayList<String>().apply {
|
||||
addClasspathArgIfNeeded(classpath)
|
||||
code.forEach {
|
||||
add("-expression")
|
||||
add("-Xexpression")
|
||||
add(it)
|
||||
}
|
||||
addAll(arguments)
|
||||
|
||||
Reference in New Issue
Block a user