Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amtool and Alertmanager binaries print to stdout #2505

Merged
merged 1 commit into from
Mar 5, 2021

Conversation

ArthurSens
Copy link
Member

@@ -209,7 +209,8 @@ func run() int {
peerReconnectTimeout = kingpin.Flag("cluster.reconnect-timeout", "Length of time to attempt to reconnect to a lost peer.").Default(cluster.DefaultReconnectTimeout.String()).Duration()
)

promlogflag.AddFlags(kingpin.CommandLine, &promlogConfig)
a := kingpin.CommandLine.UsageWriter(os.Stdout)
promlogflag.AddFlags(a, &promlogConfig)
Copy link
Member

Choose a reason for hiding this comment

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

can't we use kingpin.CommandLine here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry I didn't understand what you mean, could you elaborate?

Comment on lines 212 to 213
a := kingpin.CommandLine.UsageWriter(os.Stdout)
promlogflag.AddFlags(a, &promlogConfig)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
a := kingpin.CommandLine.UsageWriter(os.Stdout)
promlogflag.AddFlags(a, &promlogConfig)
promlogflag.AddFlags(kingpin.CommandLine, &promlogConfig)
kingpin.CommandLine.UsageWriter(os.Stdout)

Copy link
Member Author

Choose a reason for hiding this comment

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

Just a friendly bump to tell that I've commited your suggestion :)

@roidelapluie roidelapluie merged commit 0fef080 into prometheus:master Mar 5, 2021
@roidelapluie
Copy link
Member

Thanks!

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