Skip to content

Commit

Permalink
chore(cli): Make properties come before functions and classes
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Dec 5, 2023
1 parent 8e1ec1d commit bec02fd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions cli/src/main/kotlin/OrtMain.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>) {
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 = """
______________________________
/ \_______ \__ ___/
Expand All @@ -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<String>) {
Os.fixupUserHomeProperty()
OrtMain().main(args)
exitProcess(0)
}

class OrtMain : CliktCommand(
name = ORT_NAME,
Expand Down

0 comments on commit bec02fd

Please sign in to comment.