Beautify kotlinc -help output

This commit is contained in:
Alexander Udalov
2014-06-23 16:46:21 +04:00
parent 5e994778d1
commit ca219f9880
11 changed files with 226 additions and 192 deletions
+23 -22
View File
@@ -1,24 +1,25 @@
Invalid argument: -wrongArgument
Usage: org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments
-src [String] Source file or directory (allows many paths separated by the system path separator)
-jar [String] Resulting .jar file path
-output [String] Output directory path for .class files
-classpath [String] Paths where to find user class files
-annotations [String] Paths to external annotations
-includeRuntime [flag] Include Kotlin runtime in to resulting .jar
-noJdk [flag] Don't include Java runtime into classpath
-noStdlib [flag] Don't include Kotlin runtime into classpath
-noJdkAnnotations [flag] Don't include JDK external annotations into classpath
-notNullAssertions [flag] Generate not-null assertion after each invocation of method returning not-null
-notNullParamAssertions [flag] Generate not-null assertions on parameters of methods accessible from Java
-module [String] Path to the module file to compile
-script [flag] Evaluate the script file
-kotlinHome [String] Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
-inline [String] Inlining mode: on/off (default is on)
-tags [flag] Demarcate each compilation message (error, warning, etc) with an open and close tag
-verbose [flag] Enable verbose logging output
-version [flag] Display compiler version
-help (-h) [flag] Print a synopsis of standard options
-suppress [String] Suppress compiler messages by severity (warnings)
-printArgs [flag] Print command line arguments
Usage: kotlinc-jvm <options> <source files>
where possible options include:
-src <path> Source file or directory (allows many paths separated by the system path separator)
-jar <path> Resulting .jar file path
-output <path> Output directory path for .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)
-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
-printArgs Print command line arguments
INTERNAL_ERROR