From bec02fd68ce12fbc520a0262f3ea259885f0ea3b Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 5 Dec 2023 08:36:07 +0100 Subject: [PATCH] chore(cli): Make properties come before functions and classes Signed-off-by: Sebastian Schuberth --- cli/src/main/kotlin/OrtMain.kt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/cli/src/main/kotlin/OrtMain.kt b/cli/src/main/kotlin/OrtMain.kt index ea2afba9c0366..8afa8bd33a55a 100644 --- a/cli/src/main/kotlin/OrtMain.kt +++ b/cli/src/main/kotlin/OrtMain.kt @@ -64,17 +64,11 @@ import org.ossreviewtoolkit.utils.ort.printStackTrace import org.slf4j.LoggerFactory -/** - * The entry point for the application with [args] being the list of arguments. - */ -fun main(args: Array) { - Os.fixupUserHomeProperty() - OrtMain().main(args) - exitProcess(0) -} - private const val REQUIRED_OPTION_MARKER = "*" +// A priority value that is higher than any Clikt built-in value for allocating width. +private const val HIGHEST_PRIORITY_FOR_WIDTH = 100 + private val ORT_LOGO = """ ______________________________ / \_______ \__ ___/ @@ -83,8 +77,14 @@ private val ORT_LOGO = """ \________/ |____|___/ |____| """.trimIndent() -// A priority value that is higher than any Clikt built-in value for allocating width. -private const val HIGHEST_PRIORITY_FOR_WIDTH = 100 +/** + * The entry point for the application with [args] being the list of arguments. + */ +fun main(args: Array) { + Os.fixupUserHomeProperty() + OrtMain().main(args) + exitProcess(0) +} class OrtMain : CliktCommand( name = ORT_NAME,