[Native] Warn on any usage of -repo CLI option

^KT-61098
This commit is contained in:
Dmitriy Dolovov
2023-11-16 12:24:44 +01:00
committed by Space Team
parent 0b253dc815
commit b1c9791404
4 changed files with 34 additions and 6 deletions
@@ -55,7 +55,9 @@ open class CommonInteropArguments(val argParser: ArgParser) {
ArgType.String,
shortName = "r",
description = "repository to resolve dependencies",
deprecatedWarning = "This option is deprecated and will be removed in one of the future releases. Please use library paths instead of library names in all options such as '-library'"
// Use the name of the option directly in the deprecation message. This message is automatically printed to the console
// if the option has been specified. Without option name in the message it would be unclear which exactly option is deprecated.
deprecatedWarning = "'-repo' ('-r') option is deprecated and will be removed in one of the future releases. Please use library paths instead of library names in all options such as '-library' ('-l')."
).multiple()
val nodefaultlibs by argParser.option(ArgType.Boolean, NODEFAULTLIBS,
description = "don't link the libraries from dist/klib automatically").default(false)