diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt index cf6a26d0d93..774a0dedf8d 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArguments.kt @@ -35,7 +35,7 @@ class K2JSCompilerArguments : CommonCompilerArguments() { value = DefaultValues.StringNullDefault::class, gradleInputType = GradleInputTypes.INPUT ) - @Argument(value = "-Xir-module-name", description = "Base name of generated files") + @Argument(value = "-module-name", description = "Base name of generated files") var moduleName: String? by NullableStringFreezableVar(null) @GradleOption( @@ -204,7 +204,7 @@ class K2JSCompilerArguments : CommonCompilerArguments() { var irOnly: Boolean by FreezableVar(false) @Argument( - value = "-Xir-klib-module-name", + value = "-Xir-module-name", valueDescription = "", description = "Specify a compilation module name for IR backend" ) diff --git a/compiler/testData/cli/js/jsExtraHelp.out b/compiler/testData/cli/js/jsExtraHelp.out index 92cc7494a7f..98e6e4399f8 100644 --- a/compiler/testData/cli/js/jsExtraHelp.out +++ b/compiler/testData/cli/js/jsExtraHelp.out @@ -21,7 +21,7 @@ where advanced options include: Lambda expressions that capture values are translated into in-line anonymous JavaScript functions -Xir-keep Comma-separated list of fully-qualified names to not be eliminated by DCE (if it can be reached), and for which to keep non-minified names. -Xir-minimized-member-names Perform minimization for names of members - -Xir-klib-module-name= Specify a compilation module name for IR backend + -Xir-module-name= Specify a compilation module name for IR backend -Xir-new-ir2js New fragment-based ir2js -Xir-only Disables pre-IR backend -Xir-per-file Splits generated .js per-file @@ -38,7 +38,6 @@ where advanced options include: Enable runtime diagnostics when access safely to boolean in external declarations -Xlegacy-deprecated-no-warn Disable warnings of deprecation of legacy compiler -Xmetadata-only Generate *.meta.js and *.kjsm files only - -Xir-module-name Base name of generated files -Xir-output-dir= Destination for generated files -Xpartial-linkage Allow unlinked symbols -Xrepositories= Paths to additional places where libraries could be found diff --git a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/ir/CompilerFlags.kt b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/ir/CompilerFlags.kt index 1c3c7858484..cea307e856c 100644 --- a/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/ir/CompilerFlags.kt +++ b/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/ir/CompilerFlags.kt @@ -22,7 +22,7 @@ internal const val PRODUCE_ZIPPED_KLIB = "-Xir-produce-klib-file" internal const val MINIMIZED_MEMBER_NAMES = "-Xir-minimized-member-names" -internal const val KLIB_MODULE_NAME = "-Xir-klib-module-name" +internal const val KLIB_MODULE_NAME = "-Xir-module-name" internal const val PER_MODULE = "-Xir-per-module" internal const val PER_MODULE_OUTPUT_NAME = "-Xir-per-module-output-name"