From f2236ae5d985b9f31631b076df24ca6c33542e61 Mon Sep 17 00:00:00 2001 From: Magnus Edenhill Date: Mon, 23 Aug 2021 15:16:25 +0200 Subject: [PATCH] Indicate in -V output if Verbatim JSON is supported --- kcat.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/kcat.c b/kcat.c index 6c709e72..9f36d3d1 100644 --- a/kcat.c +++ b/kcat.c @@ -1253,7 +1253,7 @@ static void RD_NORETURN usage (const char *argv0, int exitcode, "kcat - Apache Kafka producer and consumer tool\n" "https://github.com/edenhill/kcat\n" "Copyright (c) 2014-2021, Magnus Edenhill\n" - "Version %s (%slibrdkafka %s builtin.features=%s)\n" + "Version %s (%s%slibrdkafka %s builtin.features=%s)\n" "\n", KCAT_VERSION, "" @@ -1270,6 +1270,11 @@ static void RD_NORETURN usage (const char *argv0, int exitcode, "IncrementalAssign, " #endif , +#if ENABLE_JSON + json_can_emit_verbatim() ? "JSONVerbatim, " : "", +#else + "", +#endif rd_kafka_version_str(), features );