CLI: Support "-X" advanced options, simplify some boolean options
This commit is contained in:
@@ -0,0 +1 @@
|
||||
-X
|
||||
@@ -0,0 +1,5 @@
|
||||
Usage: kotlinc-js <options> <source files>
|
||||
where advanced options include:
|
||||
|
||||
Advanced options are non-standard and may be changed or removed without any notice.
|
||||
OK
|
||||
@@ -12,4 +12,5 @@ where possible options include:
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
-X Print a synopsis of advanced options
|
||||
OK
|
||||
@@ -0,0 +1 @@
|
||||
-X
|
||||
@@ -0,0 +1,9 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where advanced options include:
|
||||
-Xno-call-assertions Don't generate not-null assertion after each invocation of method returning not-null
|
||||
-Xno-param-assertions Don't generate not-null assertions on parameters of methods accessible from Java
|
||||
-Xno-inline Disable method inlining
|
||||
-Xno-optimize Disable optimizations
|
||||
|
||||
Advanced options are non-standard and may be changed or removed without any notice.
|
||||
OK
|
||||
@@ -7,16 +7,13 @@ where possible options include:
|
||||
-noJdk Don't include Java runtime into classpath
|
||||
-noStdlib Don't include Kotlin runtime into classpath
|
||||
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||
-inline {on,off} Inlining mode (default is on)
|
||||
-optimize {on,off} Optimization mode (default is on)
|
||||
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
-X Print a synopsis of advanced options
|
||||
OK
|
||||
@@ -1,3 +0,0 @@
|
||||
-inline
|
||||
off
|
||||
-help
|
||||
@@ -1,22 +0,0 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
-noJdk Don't include Java runtime into classpath
|
||||
-noStdlib Don't include Kotlin runtime into classpath
|
||||
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||
-inline {on,off} Inlining mode (default is on)
|
||||
-optimize {on,off} Optimization mode (default is on)
|
||||
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
OK
|
||||
@@ -1,3 +0,0 @@
|
||||
-inline
|
||||
on
|
||||
-help
|
||||
@@ -1,22 +0,0 @@
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
-noJdk Don't include Java runtime into classpath
|
||||
-noStdlib Don't include Kotlin runtime into classpath
|
||||
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||
-inline {on,off} Inlining mode (default is on)
|
||||
-optimize {on,off} Optimization mode (default is on)
|
||||
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
OK
|
||||
@@ -1,2 +0,0 @@
|
||||
-inline
|
||||
wrong
|
||||
@@ -1,23 +0,0 @@
|
||||
Wrong value for inline option: 'wrong'. Should be 'on'/'off' or 'true'/'false'
|
||||
Usage: kotlinc-jvm <options> <source files>
|
||||
where possible options include:
|
||||
-d <directory|jar> Destination for generated class files
|
||||
-classpath <path> Paths where to find user class files
|
||||
-annotations <path> Paths to external annotations
|
||||
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||
-noJdk Don't include Java runtime into classpath
|
||||
-noStdlib Don't include Kotlin runtime into classpath
|
||||
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||
-inline {on,off} Inlining mode (default is on)
|
||||
-optimize {on,off} Optimization mode (default is on)
|
||||
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
INTERNAL_ERROR
|
||||
@@ -8,16 +8,13 @@ where possible options include:
|
||||
-noJdk Don't include Java runtime into classpath
|
||||
-noStdlib Don't include Kotlin runtime into classpath
|
||||
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||
-module <path> Path to the module file to compile
|
||||
-script Evaluate the script file
|
||||
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||
-inline {on,off} Inlining mode (default is on)
|
||||
-optimize {on,off} Optimization mode (default is on)
|
||||
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-suppress warnings Suppress all compiler warnings
|
||||
-X Print a synopsis of advanced options
|
||||
INTERNAL_ERROR
|
||||
Reference in New Issue
Block a user