CLI: change "-suppress warnings" option to "-nowarn"

Following the rule of the least surprise: this option is named "-nowarn" in
other JVM language compilers. Besides, having an option with an argument which
can take exactly one predefined value is sort of confusing
This commit is contained in:
Alexander Udalov
2014-08-01 21:30:35 -05:00
parent cf431ffab0
commit 97e57e3e3d
15 changed files with 17 additions and 73 deletions
+1 -1
View File
@@ -7,10 +7,10 @@ where possible options include:
-main {call,noCall} Whether a main function should be called; default 'call' (main function will be auto detected)
-output-prefix <path> Path to file which will be added to the beginning of output file
-output-postfix <path> Path to file which will be added to the end of output file
-nowarn Generate no warnings
-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,5 +1,4 @@
$TESTDATA_DIR$/../warnings.kt
-suppress
WaRnInGs
-nowarn
-output
$TEMP_DIR$/out.js
+1 -1
View File
@@ -10,10 +10,10 @@ where possible options include:
-module <path> Path to the module file to compile
-script Evaluate the script file
-kotlin-home <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
-nowarn Generate no warnings
-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,5 +1,4 @@
$TESTDATA_DIR$/../warnings.kt
-suppress
warnings
-nowarn
-d
$TEMP_DIR$
@@ -1,5 +0,0 @@
$TESTDATA_DIR$/../warnings.kt
-suppress
WaRnInGs
-d
$TEMP_DIR$
@@ -1 +0,0 @@
OK
+1 -1
View File
@@ -11,10 +11,10 @@ where possible options include:
-module <path> Path to the module file to compile
-script Evaluate the script file
-kotlin-home <path> Path to Kotlin compiler home directory, used for annotations and runtime libraries discovery
-nowarn Generate no warnings
-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