[CLI] create ArgumentParseErrors instances on request
spare memory for projects with big number of modules currently 500kb for IJ monorepo of mostly empty errors
This commit is contained in:
@@ -39,7 +39,7 @@ fun main(args: Array<String>) {
|
||||
@TestOnly
|
||||
internal fun transformArgs(args: List<String>, messageCollector: MessageCollector, isTest: Boolean): List<String> {
|
||||
val parseErrors = ArgumentParseErrors()
|
||||
val kotlincTransformed = preprocessCommandLineArguments(args, parseErrors)
|
||||
val kotlincTransformed = preprocessCommandLineArguments(args, lazy { parseErrors })
|
||||
|
||||
val errorMessage = validateArguments(parseErrors)
|
||||
if (errorMessage != null) {
|
||||
|
||||
Reference in New Issue
Block a user