From e502ac64f33fbc6957df16f646f74de16b2c459c Mon Sep 17 00:00:00 2001 From: Ralph Gasser Date: Mon, 11 Apr 2022 13:21:49 +0200 Subject: [PATCH] Format.PROTO is now the default value for all AbstractCottontailCommand.Query. Fixes #106 --- .../org/vitrivr/cottontail/cli/AbstractCottontailCommand.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cottontaildb-cli/src/main/kotlin/org/vitrivr/cottontail/cli/AbstractCottontailCommand.kt b/cottontaildb-cli/src/main/kotlin/org/vitrivr/cottontail/cli/AbstractCottontailCommand.kt index 69080c613..cafd6efe1 100644 --- a/cottontaildb-cli/src/main/kotlin/org/vitrivr/cottontail/cli/AbstractCottontailCommand.kt +++ b/cottontaildb-cli/src/main/kotlin/org/vitrivr/cottontail/cli/AbstractCottontailCommand.kt @@ -102,8 +102,8 @@ sealed class AbstractCottontailCommand(name: String, help: String, val expand: B private val format: Format? by option( "-f", "--format", - help = "Only for option --out; export format. Defaults to PROTO" - ).convert { Format.valueOf(it) } + help = "Only for option --out; export format. Defaults to PROTO." + ).convert { Format.valueOf(it) }.default(Format.PROTO) /** Flag indicating, whether query should written to file or console. */ protected val toFile: Boolean