Skip to content

Commit

Permalink
Merge pull request #479 from ripienaar/330.1
Browse files Browse the repository at this point in the history
remove some redundant boolean invert help hints
  • Loading branch information
ripienaar authored May 30, 2022
2 parents 4becfd8 + ed22f39 commit 784dd9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/consumer_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func configureConsumerCommand(app commandHost) {
f.Flag("heartbeat", "Enable idle Push consumer heartbeats (-1 disable)").StringVar(&c.idleHeartbeat)
}

OptionalBoolean(f.Flag("headers-only", "Deliver only headers and no bodies (--no-headers-only disables)"))
OptionalBoolean(f.Flag("headers-only", "Deliver only headers and no bodies"))
f.Flag("max-deliver", "Maximum amount of times a message will be delivered").PlaceHolder("TRIES").IntVar(&c.maxDeliver)
f.Flag("max-outstanding", "Maximum pending Acks before consumers are paused").Hidden().Default("-1").IntVar(&c.maxAckPending)
f.Flag("max-pending", "Maximum pending Acks before consumers are paused").Default("-1").IntVar(&c.maxAckPending)
Expand Down
8 changes: 4 additions & 4 deletions cli/stream_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func configureStreamCommand(app commandHost) {
f.Flag("tag", "Place the stream on servers that has specific tags (pass multiple times)").StringsVar(&c.placementTags)
f.Flag("tags", "Backward compatibility only, use --tag").Hidden().StringsVar(&c.placementTags)
f.Flag("cluster", "Place the stream on a specific cluster").StringVar(&c.placementCluster)
f.Flag("ack", "(--no-ack) Acknowledge publishes").Default("true").BoolVar(&c.ack)
f.Flag("ack", "Acknowledge publishes").Default("true").BoolVar(&c.ack)
f.Flag("retention", "Defines a retention policy (limits, interest, work)").EnumVar(&c.retentionPolicyS, "limits", "interest", "workq", "work")
f.Flag("discard", "Defines the discard policy (new, old)").EnumVar(&c.discardPolicy, "new", "old")
f.Flag("max-age", "Maximum age of messages to keep").Default("").StringVar(&c.maxAgeLimit)
Expand All @@ -161,9 +161,9 @@ func configureStreamCommand(app commandHost) {
f.Flag("mirror", "Completely mirror another stream").StringVar(&c.mirror)
f.Flag("source", "Source data from other Streams, merging into this one").PlaceHolder("STREAM").StringsVar(&c.sources)

OptionalBoolean(f.Flag("allow-rollup", "(--no-allow-rollup) Allows roll-ups to be done by publishing messages with special headers"))
OptionalBoolean(f.Flag("deny-delete", "(--no-deny-delete) Deny messages from being deleted via the API"))
OptionalBoolean(f.Flag("deny-purge", "(--no-deny-purge) Deny entire stream or subject purges via the API"))
OptionalBoolean(f.Flag("allow-rollup", "Allows roll-ups to be done by publishing messages with special headers"))
OptionalBoolean(f.Flag("deny-delete", "Deny messages from being deleted via the API"))
OptionalBoolean(f.Flag("deny-purge", "Deny entire stream or subject purges via the API"))

f.Flag("json", "Produce JSON output").Short('j').BoolVar(&c.json)

Expand Down

0 comments on commit 784dd9f

Please sign in to comment.