Beautify kotlinc -help output
This commit is contained in:
+9
-1
@@ -18,8 +18,10 @@ package org.jetbrains.jet.cli.common.arguments;
|
|||||||
|
|
||||||
import com.intellij.util.SmartList;
|
import com.intellij.util.SmartList;
|
||||||
import com.sampullara.cli.Argument;
|
import com.sampullara.cli.Argument;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.jetbrains.jet.cli.common.arguments.CommonArgumentConstants.SUPPRESS_WARNINGS;
|
import static org.jetbrains.jet.cli.common.arguments.CommonArgumentConstants.SUPPRESS_WARNINGS;
|
||||||
|
|
||||||
public abstract class CommonCompilerArguments {
|
public abstract class CommonCompilerArguments {
|
||||||
@@ -35,7 +37,8 @@ public abstract class CommonCompilerArguments {
|
|||||||
@Argument(value = "help", alias = "h", description = "Print a synopsis of standard options")
|
@Argument(value = "help", alias = "h", description = "Print a synopsis of standard options")
|
||||||
public boolean help;
|
public boolean help;
|
||||||
|
|
||||||
@Argument(value = "suppress", description = "Suppress compiler messages by severity (" + SUPPRESS_WARNINGS + ")")
|
@Argument(value = "suppress", description = "Suppress all compiler warnings")
|
||||||
|
@ValueDescription(SUPPRESS_WARNINGS)
|
||||||
public String suppress;
|
public String suppress;
|
||||||
|
|
||||||
@Argument(value = "printArgs", description = "Print command line arguments")
|
@Argument(value = "printArgs", description = "Print command line arguments")
|
||||||
@@ -47,6 +50,11 @@ public abstract class CommonCompilerArguments {
|
|||||||
return SUPPRESS_WARNINGS.equalsIgnoreCase(suppress);
|
return SUPPRESS_WARNINGS.equalsIgnoreCase(suppress);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@NotNull
|
||||||
|
public String executableScriptFileName() {
|
||||||
|
return "kotlinc";
|
||||||
|
}
|
||||||
|
|
||||||
// Used only for serialize and deserialize settings. Don't use in other places!
|
// Used only for serialize and deserialize settings. Don't use in other places!
|
||||||
public static final class DummyImpl extends CommonCompilerArguments {}
|
public static final class DummyImpl extends CommonCompilerArguments {}
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-4
@@ -17,6 +17,7 @@
|
|||||||
package org.jetbrains.jet.cli.common.arguments;
|
package org.jetbrains.jet.cli.common.arguments;
|
||||||
|
|
||||||
import com.sampullara.cli.Argument;
|
import com.sampullara.cli.Argument;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import static org.jetbrains.jet.cli.common.arguments.K2JsArgumentConstants.CALL;
|
import static org.jetbrains.jet.cli.common.arguments.K2JsArgumentConstants.CALL;
|
||||||
@@ -27,28 +28,40 @@ import static org.jetbrains.jet.cli.common.arguments.K2JsArgumentConstants.NO_CA
|
|||||||
*/
|
*/
|
||||||
public class K2JSCompilerArguments extends CommonCompilerArguments {
|
public class K2JSCompilerArguments extends CommonCompilerArguments {
|
||||||
@Argument(value = "output", description = "Output file path")
|
@Argument(value = "output", description = "Output file path")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String outputFile;
|
public String outputFile;
|
||||||
|
|
||||||
@Argument(value = "libraryFiles", description = "Path to zipped lib sources or kotlin files")
|
@Argument(value = "libraryFiles", description = "Path to zipped library sources or kotlin files separated by commas")
|
||||||
|
@ValueDescription("<path[,]>")
|
||||||
public String[] libraryFiles;
|
public String[] libraryFiles;
|
||||||
|
|
||||||
@Argument(value = "sourceFiles", description = "Source files (dir or file)")
|
@Argument(value = "sourceFiles", description = "Source files or directories separated by commas")
|
||||||
|
@ValueDescription("<path[,]>")
|
||||||
public String[] sourceFiles;
|
public String[] sourceFiles;
|
||||||
|
|
||||||
@Argument(value = "sourcemap", description = "Generate SourceMap")
|
@Argument(value = "sourcemap", description = "Generate SourceMap")
|
||||||
public boolean sourcemap;
|
public boolean sourcemap;
|
||||||
|
|
||||||
@Argument(value = "target", description = "Generate JS files for specific ECMA version (only ECMA 5 is supported)")
|
@Argument(value = "target", description = "Generate JS files for specific ECMA version (only ECMA 5 is supported)")
|
||||||
|
@ValueDescription("<version>")
|
||||||
public String target;
|
public String target;
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Argument(value = "main", description = "Whether a main function should be called; either '" + CALL +
|
@Argument(value = "main", description = "Whether a main function should be called; default '" + CALL + "' (main function will be auto detected)")
|
||||||
"' or '" + NO_CALL + "', default '" + CALL + "' (main function will be auto detected)")
|
@ValueDescription("{" + CALL + "," + NO_CALL + "}")
|
||||||
public String main;
|
public String main;
|
||||||
|
|
||||||
@Argument(value = "outputPrefix", description = "Path to file which will be added to the beginning of output file")
|
@Argument(value = "outputPrefix", description = "Path to file which will be added to the beginning of output file")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String outputPrefix;
|
public String outputPrefix;
|
||||||
|
|
||||||
@Argument(value = "outputPostfix", description = "Path to file which will be added to the end of output file")
|
@Argument(value = "outputPostfix", description = "Path to file which will be added to the end of output file")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String outputPostfix;
|
public String outputPostfix;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@NotNull
|
||||||
|
public String executableScriptFileName() {
|
||||||
|
return "kotlinc-js";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-1
@@ -19,6 +19,7 @@
|
|||||||
package org.jetbrains.jet.cli.common.arguments;
|
package org.jetbrains.jet.cli.common.arguments;
|
||||||
|
|
||||||
import com.sampullara.cli.Argument;
|
import com.sampullara.cli.Argument;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Command line arguments for K2JVMCompiler
|
* Command line arguments for K2JVMCompiler
|
||||||
@@ -26,18 +27,23 @@ import com.sampullara.cli.Argument;
|
|||||||
@SuppressWarnings("UnusedDeclaration")
|
@SuppressWarnings("UnusedDeclaration")
|
||||||
public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
||||||
@Argument(value = "src", description = "Source file or directory (allows many paths separated by the system path separator)")
|
@Argument(value = "src", description = "Source file or directory (allows many paths separated by the system path separator)")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String src;
|
public String src;
|
||||||
|
|
||||||
@Argument(value = "jar", description = "Resulting .jar file path")
|
@Argument(value = "jar", description = "Resulting .jar file path")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String jar;
|
public String jar;
|
||||||
|
|
||||||
@Argument(value = "output", description = "Output directory path for .class files")
|
@Argument(value = "output", description = "Output directory path for .class files")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String outputDir;
|
public String outputDir;
|
||||||
|
|
||||||
@Argument(value = "classpath", description = "Paths where to find user class files")
|
@Argument(value = "classpath", description = "Paths where to find user class files")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String classpath;
|
public String classpath;
|
||||||
|
|
||||||
@Argument(value = "annotations", description = "Paths to external annotations")
|
@Argument(value = "annotations", description = "Paths to external annotations")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String annotations;
|
public String annotations;
|
||||||
|
|
||||||
@Argument(value = "includeRuntime", description = "Include Kotlin runtime in to resulting .jar")
|
@Argument(value = "includeRuntime", description = "Include Kotlin runtime in to resulting .jar")
|
||||||
@@ -59,14 +65,23 @@ public class K2JVMCompilerArguments extends CommonCompilerArguments {
|
|||||||
public boolean notNullParamAssertions;
|
public boolean notNullParamAssertions;
|
||||||
|
|
||||||
@Argument(value = "module", description = "Path to the module file to compile")
|
@Argument(value = "module", description = "Path to the module file to compile")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String module;
|
public String module;
|
||||||
|
|
||||||
@Argument(value = "script", description = "Evaluate the script file")
|
@Argument(value = "script", description = "Evaluate the script file")
|
||||||
public boolean script;
|
public boolean script;
|
||||||
|
|
||||||
@Argument(value = "kotlinHome", description = "Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery")
|
@Argument(value = "kotlinHome", description = "Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery")
|
||||||
|
@ValueDescription("<path>")
|
||||||
public String kotlinHome;
|
public String kotlinHome;
|
||||||
|
|
||||||
@Argument(value = "inline", description = "Inlining mode: on/off (default is on)")
|
@Argument(value = "inline", description = "Inlining mode (default is on)")
|
||||||
|
@ValueDescription("{on,off}")
|
||||||
public String inline;
|
public String inline;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@NotNull
|
||||||
|
public String executableScriptFileName() {
|
||||||
|
return "kotlinc-jvm";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2014 JetBrains s.r.o.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.jetbrains.jet.cli.common.arguments;
|
||||||
|
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import java.lang.annotation.Retention;
|
||||||
|
import java.lang.annotation.RetentionPolicy;
|
||||||
|
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
public @interface ValueDescription {
|
||||||
|
@NotNull
|
||||||
|
String value();
|
||||||
|
}
|
||||||
@@ -20,94 +20,58 @@ import com.sampullara.cli.Argument;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
||||||
|
import org.jetbrains.jet.cli.common.arguments.ValueDescription;
|
||||||
|
|
||||||
import java.io.PrintStream;
|
import java.io.PrintStream;
|
||||||
import java.lang.reflect.Array;
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
class Usage {
|
class Usage {
|
||||||
private final PrintStream out;
|
// The magic number 29 corresponds to the similar padding width in javac and scalac command line compilers
|
||||||
|
private static final int OPTION_NAME_PADDING_WIDTH = 29;
|
||||||
private Usage(@NotNull PrintStream out) {
|
|
||||||
this.out = out;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void print(@NotNull PrintStream target, @NotNull CommonCompilerArguments arguments) {
|
public static void print(@NotNull PrintStream target, @NotNull CommonCompilerArguments arguments) {
|
||||||
new Usage(target).print(arguments);
|
target.println("Usage: " + arguments.executableScriptFileName() + " <options> <source files>");
|
||||||
}
|
target.println("where possible options include:");
|
||||||
|
for (Class<?> clazz = arguments.getClass(); clazz != null; clazz = clazz.getSuperclass()) {
|
||||||
private void print(@NotNull CommonCompilerArguments arguments) {
|
for (Field field : clazz.getDeclaredFields()) {
|
||||||
Class<?> clazz = arguments.getClass();
|
String usage = fieldUsage(field);
|
||||||
out.println("Usage: " + clazz.getName());
|
if (usage != null) {
|
||||||
for (Class<?> currentClass = clazz; currentClass != null; currentClass = currentClass.getSuperclass()) {
|
target.println(usage);
|
||||||
for (Field field : currentClass.getDeclaredFields()) {
|
|
||||||
Argument argument = field.getAnnotation(Argument.class);
|
|
||||||
if (argument == null) continue;
|
|
||||||
|
|
||||||
try {
|
|
||||||
printFieldUsage(field, field.get(arguments), argument);
|
|
||||||
}
|
|
||||||
catch (IllegalAccessException e) {
|
|
||||||
throw new IllegalArgumentException("Could not use the field " + field + " as an argument field", e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printFieldUsage(@NotNull Field field, @Nullable Object defaultValue, @NotNull Argument argument) {
|
@Nullable
|
||||||
|
private static String fieldUsage(@NotNull Field field) {
|
||||||
|
Argument argument = field.getAnnotation(Argument.class);
|
||||||
|
if (argument == null) return null;
|
||||||
|
ValueDescription description = field.getAnnotation(ValueDescription.class);
|
||||||
|
|
||||||
String prefix = argument.prefix();
|
String prefix = argument.prefix();
|
||||||
Class<?> type = field.getType();
|
|
||||||
String description = argument.description();
|
|
||||||
|
|
||||||
StringBuilder sb = new StringBuilder(" ");
|
StringBuilder sb = new StringBuilder(" ");
|
||||||
sb.append(prefix);
|
sb.append(prefix);
|
||||||
if (argument.value().equals("")) {
|
if (argument.value().isEmpty()) {
|
||||||
sb.append(field.getName());
|
sb.append(field.getName());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
sb.append(argument.value());
|
sb.append(argument.value());
|
||||||
}
|
}
|
||||||
if (!argument.alias().equals("")) {
|
if (!argument.alias().isEmpty()) {
|
||||||
sb.append(" (");
|
sb.append(" (");
|
||||||
sb.append(prefix);
|
sb.append(prefix);
|
||||||
sb.append(argument.alias());
|
sb.append(argument.alias());
|
||||||
sb.append(")");
|
sb.append(")");
|
||||||
}
|
}
|
||||||
if (type == Boolean.TYPE || type == Boolean.class) {
|
if (description != null) {
|
||||||
sb.append(" [flag] ");
|
sb.append(" ");
|
||||||
sb.append(description);
|
sb.append(description.value());
|
||||||
}
|
}
|
||||||
else {
|
while (sb.length() < OPTION_NAME_PADDING_WIDTH) {
|
||||||
sb.append(" [");
|
sb.append(" ");
|
||||||
if (type.isArray()) {
|
|
||||||
sb.append(type.getComponentType().getSimpleName());
|
|
||||||
sb.append("[");
|
|
||||||
sb.append(argument.delimiter());
|
|
||||||
sb.append("]");
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
sb.append(type.getSimpleName());
|
|
||||||
}
|
|
||||||
sb.append("] ");
|
|
||||||
sb.append(description);
|
|
||||||
if (defaultValue != null) {
|
|
||||||
sb.append(" (");
|
|
||||||
if (type.isArray()) {
|
|
||||||
int len = Array.getLength(defaultValue);
|
|
||||||
List<Object> list = new ArrayList<Object>(len);
|
|
||||||
for (int i = 0; i < len; i++) {
|
|
||||||
list.add(Array.get(defaultValue, i));
|
|
||||||
}
|
|
||||||
sb.append(list);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
sb.append(defaultValue);
|
|
||||||
}
|
|
||||||
sb.append(")");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
out.println(sb);
|
sb.append(argument.description());
|
||||||
|
return sb.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,17 @@
|
|||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments
|
Usage: kotlinc-js <options> <source files>
|
||||||
-output [String] Output file path
|
where possible options include:
|
||||||
-libraryFiles [String[,]] Path to zipped lib sources or kotlin files
|
-output <path> Output file path
|
||||||
-sourceFiles [String[,]] Source files (dir or file)
|
-libraryFiles <path[,]> Path to zipped library sources or kotlin files separated by commas
|
||||||
-sourcemap [flag] Generate SourceMap
|
-sourceFiles <path[,]> Source files or directories separated by commas
|
||||||
-target [String] Generate JS files for specific ECMA version (only ECMA 5 is supported)
|
-sourcemap Generate SourceMap
|
||||||
-main [String] Whether a main function should be called; either 'call' or 'noCall', default 'call' (main function will be auto detected)
|
-target <version> Generate JS files for specific ECMA version (only ECMA 5 is supported)
|
||||||
-outputPrefix [String] Path to file which will be added to the beginning of output file
|
-main {call,noCall} Whether a main function should be called; default 'call' (main function will be auto detected)
|
||||||
-outputPostfix [String] Path to file which will be added to the end of output file
|
-outputPrefix <path> Path to file which will be added to the beginning of output file
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-outputPostfix <path> Path to file which will be added to the end of output file
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
OK
|
OK
|
||||||
@@ -1,23 +1,24 @@
|
|||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
|
Usage: kotlinc-jvm <options> <source files>
|
||||||
-src [String] Source file or directory (allows many paths separated by the system path separator)
|
where possible options include:
|
||||||
-jar [String] Resulting .jar file path
|
-src <path> Source file or directory (allows many paths separated by the system path separator)
|
||||||
-output [String] Output directory path for .class files
|
-jar <path> Resulting .jar file path
|
||||||
-classpath [String] Paths where to find user class files
|
-output <path> Output directory path for .class files
|
||||||
-annotations [String] Paths to external annotations
|
-classpath <path> Paths where to find user class files
|
||||||
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
|
-annotations <path> Paths to external annotations
|
||||||
-noJdk [flag] Don't include Java runtime into classpath
|
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||||
-noStdlib [flag] Don't include Kotlin runtime into classpath
|
-noJdk Don't include Java runtime into classpath
|
||||||
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
|
-noStdlib Don't include Kotlin runtime into classpath
|
||||||
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
|
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||||
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
|
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||||
-module [String] Path to the module file to compile
|
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||||
-script [flag] Evaluate the script file
|
-module <path> Path to the module file to compile
|
||||||
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
-script Evaluate the script file
|
||||||
-inline [String] Inlining mode: on/off (default is on)
|
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-inline {on,off} Inlining mode (default is on)
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
OK
|
OK
|
||||||
@@ -1,23 +1,24 @@
|
|||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
|
Usage: kotlinc-jvm <options> <source files>
|
||||||
-src [String] Source file or directory (allows many paths separated by the system path separator)
|
where possible options include:
|
||||||
-jar [String] Resulting .jar file path
|
-src <path> Source file or directory (allows many paths separated by the system path separator)
|
||||||
-output [String] Output directory path for .class files
|
-jar <path> Resulting .jar file path
|
||||||
-classpath [String] Paths where to find user class files
|
-output <path> Output directory path for .class files
|
||||||
-annotations [String] Paths to external annotations
|
-classpath <path> Paths where to find user class files
|
||||||
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
|
-annotations <path> Paths to external annotations
|
||||||
-noJdk [flag] Don't include Java runtime into classpath
|
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||||
-noStdlib [flag] Don't include Kotlin runtime into classpath
|
-noJdk Don't include Java runtime into classpath
|
||||||
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
|
-noStdlib Don't include Kotlin runtime into classpath
|
||||||
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
|
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||||
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
|
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||||
-module [String] Path to the module file to compile
|
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||||
-script [flag] Evaluate the script file
|
-module <path> Path to the module file to compile
|
||||||
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
-script Evaluate the script file
|
||||||
-inline [String] Inlining mode: on/off (default is on)
|
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-inline {on,off} Inlining mode (default is on)
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
OK
|
OK
|
||||||
@@ -1,23 +1,24 @@
|
|||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
|
Usage: kotlinc-jvm <options> <source files>
|
||||||
-src [String] Source file or directory (allows many paths separated by the system path separator)
|
where possible options include:
|
||||||
-jar [String] Resulting .jar file path
|
-src <path> Source file or directory (allows many paths separated by the system path separator)
|
||||||
-output [String] Output directory path for .class files
|
-jar <path> Resulting .jar file path
|
||||||
-classpath [String] Paths where to find user class files
|
-output <path> Output directory path for .class files
|
||||||
-annotations [String] Paths to external annotations
|
-classpath <path> Paths where to find user class files
|
||||||
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
|
-annotations <path> Paths to external annotations
|
||||||
-noJdk [flag] Don't include Java runtime into classpath
|
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||||
-noStdlib [flag] Don't include Kotlin runtime into classpath
|
-noJdk Don't include Java runtime into classpath
|
||||||
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
|
-noStdlib Don't include Kotlin runtime into classpath
|
||||||
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
|
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||||
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
|
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||||
-module [String] Path to the module file to compile
|
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||||
-script [flag] Evaluate the script file
|
-module <path> Path to the module file to compile
|
||||||
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
-script Evaluate the script file
|
||||||
-inline [String] Inlining mode: on/off (default is on)
|
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-inline {on,off} Inlining mode (default is on)
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
OK
|
OK
|
||||||
@@ -1,24 +1,25 @@
|
|||||||
Wrong value for inline option: 'wrong'. Should be 'on'/'off' or 'true'/'false'
|
Wrong value for inline option: 'wrong'. Should be 'on'/'off' or 'true'/'false'
|
||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
|
Usage: kotlinc-jvm <options> <source files>
|
||||||
-src [String] Source file or directory (allows many paths separated by the system path separator)
|
where possible options include:
|
||||||
-jar [String] Resulting .jar file path
|
-src <path> Source file or directory (allows many paths separated by the system path separator)
|
||||||
-output [String] Output directory path for .class files
|
-jar <path> Resulting .jar file path
|
||||||
-classpath [String] Paths where to find user class files
|
-output <path> Output directory path for .class files
|
||||||
-annotations [String] Paths to external annotations
|
-classpath <path> Paths where to find user class files
|
||||||
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
|
-annotations <path> Paths to external annotations
|
||||||
-noJdk [flag] Don't include Java runtime into classpath
|
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||||
-noStdlib [flag] Don't include Kotlin runtime into classpath
|
-noJdk Don't include Java runtime into classpath
|
||||||
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
|
-noStdlib Don't include Kotlin runtime into classpath
|
||||||
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
|
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||||
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
|
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||||
-module [String] Path to the module file to compile
|
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||||
-script [flag] Evaluate the script file
|
-module <path> Path to the module file to compile
|
||||||
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
-script Evaluate the script file
|
||||||
-inline [String] Inlining mode: on/off (default is on)
|
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-inline {on,off} Inlining mode (default is on)
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
INTERNAL_ERROR
|
INTERNAL_ERROR
|
||||||
@@ -1,24 +1,25 @@
|
|||||||
Invalid argument: -wrongArgument
|
Invalid argument: -wrongArgument
|
||||||
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
|
Usage: kotlinc-jvm <options> <source files>
|
||||||
-src [String] Source file or directory (allows many paths separated by the system path separator)
|
where possible options include:
|
||||||
-jar [String] Resulting .jar file path
|
-src <path> Source file or directory (allows many paths separated by the system path separator)
|
||||||
-output [String] Output directory path for .class files
|
-jar <path> Resulting .jar file path
|
||||||
-classpath [String] Paths where to find user class files
|
-output <path> Output directory path for .class files
|
||||||
-annotations [String] Paths to external annotations
|
-classpath <path> Paths where to find user class files
|
||||||
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
|
-annotations <path> Paths to external annotations
|
||||||
-noJdk [flag] Don't include Java runtime into classpath
|
-includeRuntime Include Kotlin runtime in to resulting .jar
|
||||||
-noStdlib [flag] Don't include Kotlin runtime into classpath
|
-noJdk Don't include Java runtime into classpath
|
||||||
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
|
-noStdlib Don't include Kotlin runtime into classpath
|
||||||
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
|
-noJdkAnnotations Don't include JDK external annotations into classpath
|
||||||
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
|
-notNullAssertions Generate not-null assertion after each invocation of method returning not-null
|
||||||
-module [String] Path to the module file to compile
|
-notNullParamAssertions Generate not-null assertions on parameters of methods accessible from Java
|
||||||
-script [flag] Evaluate the script file
|
-module <path> Path to the module file to compile
|
||||||
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
-script Evaluate the script file
|
||||||
-inline [String] Inlining mode: on/off (default is on)
|
-kotlinHome <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
|
||||||
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
|
-inline {on,off} Inlining mode (default is on)
|
||||||
-verbose [flag] Enable verbose logging output
|
-tags Demarcate each compilation message (error, warning, etc) with an open and close tag
|
||||||
-version [flag] Display compiler version
|
-verbose Enable verbose logging output
|
||||||
-help (-h) [flag] Print a synopsis of standard options
|
-version Display compiler version
|
||||||
-suppress [String] Suppress compiler messages by severity (warnings)
|
-help (-h) Print a synopsis of standard options
|
||||||
-printArgs [flag] Print command line arguments
|
-suppress warnings Suppress all compiler warnings
|
||||||
|
-printArgs Print command line arguments
|
||||||
INTERNAL_ERROR
|
INTERNAL_ERROR
|
||||||
Reference in New Issue
Block a user