From b0c1cbff32269e31aeec7a7471eb649100fdd06c Mon Sep 17 00:00:00 2001 From: Dmitriy Dolovov Date: Tue, 3 Oct 2023 10:19:30 +0200 Subject: [PATCH] [KLIB tool] Minor. Reformat usage info --- .../org/jetbrains/kotlin/cli/klib/main.kt | 39 ++++++++++++------- 1 file changed, 25 insertions(+), 14 deletions(-) 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 [