Skip to content

Commit e5fd9c6

Browse files
committed
OrtMain: Slightly improve the wording of the environment info
Signed-off-by: Sebastian Schuberth <[email protected]>
1 parent 4979786 commit e5fd9c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/main/kotlin/OrtMain.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ object OrtMain : CommandWithHelp() {
171171
val variables = env.variables.entries.map { (key, value) -> "$key = $value" }
172172

173173
val command = commandName?.let { " '$commandName'" }.orEmpty()
174-
val with = "with".takeUnless { variables.isEmpty() }.orEmpty()
174+
val with = if (variables.isNotEmpty()) " with" else "."
175175

176176
var variableIndex = 0
177177

178178
"""
179179
________ _____________________
180180
\_____ \\______ \__ ___/ the OSS Review Toolkit, version ${env.ortVersion}.
181-
/ | \| _/ | | Running$command on Java ${env.javaVersion} and ${env.os} $with
181+
/ | \| _/ | | Running$command using Java ${env.javaVersion} on ${env.os}$with
182182
/ | \ | \ | | ${variables.getOrElse(variableIndex++) { "" }}
183183
\_______ /____|_ / |____| ${variables.getOrElse(variableIndex++) { "" }}
184184
\/ \/

0 commit comments

Comments
 (0)