We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9c1bbfc + 9ea0953 commit 790f7b3Copy full SHA for 790f7b3
src/main/kotlin/Main.kt
@@ -139,7 +139,7 @@ class Main : CliktCommand(
139
140
val inputDirectory = when (inputType) {
141
InputType.FILE -> input.toString()
142
- InputType.DATABASE -> createTempDirectory("dynmap-processor").toFile().apply {
+ InputType.DATABASE -> if (input != null) input.toString() else createTempDirectory("dynmap-processor").toFile().apply {
143
deleteOnExit()
144
}.absolutePath
145
}
0 commit comments