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
+2 -1
View File
@@ -1,4 +1,5 @@
-Xexpression=val x = 2; System.err.println((args + listOf(2,1).map { (it * x).toString() }).joinToString())
-expression
val x = 2; System.err.println((args + listOf(2,1).map { (it * x).toString() }).joinToString())
--
a
b
-1
View File
@@ -19,7 +19,6 @@ where advanced options include:
-Xdump-declarations-to=<path> Path to JSON file to dump Java to Kotlin declaration mappings
-Xdisable-standard-script Disable standard kotlin script support
-Xemit-jvm-type-annotations Emit JVM type annotations in bytecode
-Xexpression Evaluate the given string as a Kotlin script
-Xfriend-paths=<path> Paths to output directories for friend modules (whose internals should be visible)
-Xmultifile-parts-inherit Compile multifile classes as a hierarchy of parts and facade
-Xir-check-local-names Check that names of local classes and anonymous objects are the same in the IR backend as in the old backend
+1
View File
@@ -2,6 +2,7 @@ Usage: kotlinc-jvm <options> <source files>
where possible options include:
-classpath (-cp) <path> List of directories and JAR/ZIP archives to search for user class files
-d <directory|jar> Destination for generated class files
-expression (-e) Evaluate the given string as a Kotlin script
-include-runtime Include Kotlin runtime into the resulting JAR
-java-parameters Generate metadata for Java 1.8 reflection on method parameters
-jdk-home <path> Include a custom JDK from the specified location into the classpath instead of the default JAVA_HOME