Set LzmaCommand's default level to -6

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 4 years ago
parent 921ef3a08f
commit f81f4a81c7
  1. 2
      compress-cli/src/main/java/dev/openrs2/compress/cli/lzma/LzmaCommand.kt

@ -15,7 +15,7 @@ import org.tukaani.xz.LZMA2Options
class LzmaCommand : CliktCommand(name = "lzma") {
private val input by option().inputStream().defaultStdin()
private val output by option().outputStream().defaultStdout()
private val level by option().int().default(LZMA2Options.PRESET_MAX).validate {
private val level by option().int().default(LZMA2Options.PRESET_DEFAULT).validate {
require(it >= LZMA2Options.PRESET_MIN && it <= LZMA2Options.PRESET_MAX) {
"--level must be between ${LZMA2Options.PRESET_MIN} and ${LZMA2Options.PRESET_MAX} inclusive"
}

Loading…
Cancel
Save