Implement support for -Xdefault-script-extension cli option

This commit is contained in:
Ilya Chernikov
2020-11-25 21:28:07 +01:00
parent 534342a566
commit 9a7d1948a7
8 changed files with 148 additions and 22 deletions
@@ -308,6 +308,13 @@ class K2JVMCompilerArguments : CommonCompilerArguments() {
)
var jvmDefault: String by FreezableVar(JvmDefaultMode.DEFAULT.description)
@Argument(
value = "-Xdefault-script-extension",
valueDescription = "<script filename extension>",
description = "Compile expressions and unrecognized scripts passed with the -script argument as scripts with given filename extension"
)
var defaultScriptExtension: String? by FreezableVar(null)
@Argument(value = "-Xdisable-standard-script", description = "Disable standard kotlin script support")
var disableStandardScript: Boolean by FreezableVar(false)