Update @ExperimentalCli documentation with OptIn instead of UseExperimental

This commit is contained in:
Abduqodiri Qurbonzoda
2022-09-08 12:17:48 +03:00
parent 4e1cb12024
commit 0d71143de9
@@ -14,7 +14,7 @@ import kotlin.annotation.AnnotationTarget.*
* with the future versions of the CLI library.
*
* Any usage of a declaration annotated with `@ExperimentalCli` must be accepted either by
* annotating that usage with the [UseExperimental] annotation, e.g. `@UseExperimental(ExperimentalCli::class)`,
* annotating that usage with the [OptIn] annotation, e.g. `@OptIn(ExperimentalCli::class)`,
* or by using the compiler argument `-opt-in=kotlinx.cli.ExperimentalCli`.
*/
@RequiresOptIn("This API is experimental. It may be changed in the future without notice.", RequiresOptIn.Level.WARNING)