From 89e8e9853acacda2e47a5789a8b9fbf311945a36 Mon Sep 17 00:00:00 2001 From: Alex Bozhenko Date: Wed, 11 Dec 2024 14:03:19 -0800 Subject: [PATCH] upd --- cli/bench_command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/bench_command.go b/cli/bench_command.go index ceecac34..4698bdf6 100644 --- a/cli/bench_command.go +++ b/cli/bench_command.go @@ -112,7 +112,7 @@ func configureBenchCommand(app commandHost) { addJSCommonFlags := func(f *fisk.CmdClause) { f.Flag("stream", "The name of the stream to create or use").Default(benchDefaultStreamName).StringVar(&c.streamOrBucketName) - f.Flag("sleep", "Sleep for the specified interval between publications").Default("0s").PlaceHolder("DURATION").DurationVar(&c.sleep) + f.Flag("sleep", "Sleep for the specified interval between publications.").Default("0s").PlaceHolder("DURATION").DurationVar(&c.sleep) f.Flag("purge", "Purge the stream before running").UnNegatableBoolVar(&c.purge) f.Flag("js-timeout", "Timeout for JS operations").Default("30s").DurationVar(&c.jsTimeout) } @@ -149,7 +149,7 @@ func configureBenchCommand(app commandHost) { corePub := benchCommand.Command("pub", "Publish Core NATS messages").Action(c.pubAction) corePub.Arg("subject", "Subject to use for the benchmark").Required().StringVar(&c.subject) - corePub.Flag("sleep", "Sleep for the specified interval between publications").Default("0s").PlaceHolder("DURATION").DurationVar(&c.sleep) + corePub.Flag("sleep", `Sleep for the specified interval between publications, such as 300ms or 1m3s. Valid time units are "ns", "us", "ms", "s", "m", "h"`).Default("0s").PlaceHolder("DURATION").DurationVar(&c.sleep) addCommonFlags(corePub) addPubFlags(corePub)