Skip to content

doc enhancements#1663

Open
roeschter wants to merge 1 commit into
nats-io:mainfrom
roeschter:flow-control-notes
Open

doc enhancements#1663
roeschter wants to merge 1 commit into
nats-io:mainfrom
roeschter:flow-control-notes

Conversation

@roeschter

Copy link
Copy Markdown
Contributor

Clarification on documentation.

  1. flow control option is ambiguous
  2. source and mirror for stream create accept JSON (those are the only parameter which behave like this)

Comment thread cli/consumer_command.go
f.Flag("filter", "Filter Stream by subjects").PlaceHolder("SUBJECTS").StringsVar(&c.filterSubjects)
if !edit {
f.Flag("flow-control", "Enable Push consumer flow control").IsSetByUser(&c.fcSet).UnNegatableBoolVar(&c.fc)
f.Flag("flow-control", "Enable Push consumer flow control. Note: This is distinct from the 'flow_control` ack mode.").IsSetByUser(&c.fcSet).UnNegatableBoolVar(&c.fc)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we dont add notes like this in flag help, this would be the only example like this, these flags help is quick glance help and in the case of something so complex and so full of many 10s of flags the expectation is you're following documentation when using these esoteric options.

That's also why they aren't requested during the interactive question/answer phase.

Too long and verbose

Comment thread cli/stream_command.go
f.Flag("max-msgs-per-subject", "Maximum amount of messages to keep per subject").Default("0").Int64Var(&c.maxMsgPerSubjectLimit)
f.Flag("dupe-window", "Duration of the duplicate message tracking window").Default("").StringVar(&c.dupeWindow)
f.Flag("mirror", "Completely mirror another stream").StringVar(&c.mirror)
f.Flag("mirror", "Completely mirror another stream. Accepts mirror config as JSON. ").StringVar(&c.mirror)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This implies this all it accepts :) Just say like Completely mirror another stream, stream name or configuration JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants