diff --git a/kotlin-native/klib/src/main/kotlin/org/jetbrains/kotlin/cli/klib/main.kt b/kotlin-native/klib/src/main/kotlin/org/jetbrains/kotlin/cli/klib/main.kt index 534d70b6da9..4a774be973d 100644 --- a/kotlin-native/klib/src/main/kotlin/org/jetbrains/kotlin/cli/klib/main.kt +++ b/kotlin-native/klib/src/main/kotlin/org/jetbrains/kotlin/cli/klib/main.kt @@ -51,21 +51,32 @@ import org.jetbrains.kotlin.util.Logger import org.jetbrains.kotlin.util.removeSuffixIfPresent import kotlin.system.exitProcess -internal val KlibFactories = KlibMetadataFactories(::KonanBuiltIns, DynamicTypeDeserializer) +private val KlibFactories = KlibMetadataFactories(::KonanBuiltIns, DynamicTypeDeserializer) fun printUsage() { - println("Usage: klib ") - println("where the commands are:") - println("\tinfo\tgeneral information about the library") - println("\tinstall\tinstall the library to the local repository") - println("\tdump-ir\tprint out the intermediate representation (IR) for the library (to be used for debugging purposes only)") - println("\tcontents\tlist contents of the library") - println("\tsignatures\tlist of ID signatures in the library") - println("\tremove\tremove the library from the local repository") - println("and the options are:") - println("\t-repository \twork with the specified repository") - println("\t-target \tinspect specifics of the given target") - println("\t-print-signatures [true|false]\tprint ID signature for every declaration (only for \"contents\" and \"dump-ir\" commands)") + println( + """ + Usage: klib [