INNER CODE UNIT · Kotlin
updateConfigurationFromCommandLine
islandoftex/arara · cli/src/jvmMain/kotlin/org/islandoftex/arara/cli/CLI.kt:221
private fun updateConfigurationFromCommandLine() {
Session.userInterfaceOptions = UserInterfaceOptions(
locale = language?.let { MPPLocale(it) }
?: Session.userInterfaceOptions.locale,
swingLookAndFeel = Session.userInterfaceOptions.swingLookAndFeel
)
LanguageController.loadMessagesFor(Session.userInterfaceOptions.locale)
LinearExecutor.executionOptions = ExecutionOptions
.from(LinearExecutor.executionOptions)
.copy(
maxLoops = maxLoops
?: LinearExecutor.executionOptions.maxLoops,
timeoutValue = timeout?.let { it.milliseconds }
?: LinearExecutor.executionOptions.timeoutValue,
verbose = if (verbose)
true
else