From 91b24cc71bfc9e830c56264009cc9894ebe57dfc Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Tue, 19 Nov 2024 13:31:51 -0700 Subject: [PATCH] [FIXED] Examples: Add missing 'stream' and 'durable' params in usage Also clarify that `stream` parameter is actually needed. Signed-off-by: Ivan Kozlovic --- examples/js-pub.c | 2 +- examples/js-sub.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/js-pub.c b/examples/js-pub.c index 142fcddb7..decd28d4a 100644 --- a/examples/js-pub.c +++ b/examples/js-pub.c @@ -14,7 +14,7 @@ #include "examples.h" static const char *usage = ""\ -"-stream stream name (default is 'foo')\n" \ +"-stream stream name (required)\n" \ "-txt text to send (default is 'hello')\n" \ "-count number of messages to send\n" \ "-sync publish synchronously (default is async)\n"; diff --git a/examples/js-sub.c b/examples/js-sub.c index f5bfe4cbf..1a9105dca 100644 --- a/examples/js-sub.c +++ b/examples/js-sub.c @@ -15,6 +15,8 @@ static const char *usage = ""\ "-gd use global message delivery thread pool\n" \ +"-stream stream name (required)\n" \ +"-durable durable name (default is to create an ephemeral consumer)\n" "-sync receive synchronously (default is asynchronous)\n" \ "-pull use pull subscription\n" \ "-pull-async use an async pull subscription\n" \