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

Revert change so help is printed on stdout again #1004

Merged
merged 1 commit into from
Dec 23, 2019

Conversation

marckhouzam
Copy link
Collaborator

Fixes #1002
For backwards compatibility reasons, and to follow the need of
kubernetes/kubernetes#26077 (comment)
the help message should be printed on stdout.

/cc @bruceadowns @BoGeM @jharshman

Fixes spf13#1002
For backwards compatibility reasons, and to follow the need of
kubernetes/kubernetes#26077 (comment)
the help message should be printed on stdout.

Signed-off-by: Marc Khouzam <[email protected]>
@jharshman
Copy link
Collaborator

@marckhouzam, since @BoGeM was the one who merged #922, I am going to give him a chance to weigh in here.

@jharshman jharshman added this to the 1.0.0 milestone Dec 23, 2019
@jharshman jharshman added the kind/bug A bug in cobra; unintended behavior label Dec 23, 2019
@jharshman jharshman requested a review from n10v December 23, 2019 02:06
@eparis
Copy link
Collaborator

eparis commented Dec 23, 2019

I completely agree. Help, especially when requested by the user, belong on stdout.

@eparis eparis merged commit 0d9d2d4 into spf13:master Dec 23, 2019
@marckhouzam marckhouzam deleted the fix/revertStderr branch December 23, 2019 23:59
marckhouzam added a commit to VilledeMontreal/acceptance-testing that referenced this pull request Jan 1, 2020
This reverts commit 187a774.

Cobra has reverted the change that had the help message go to stderr:
spf13/cobra#1004

Considering what allowed to notice this regression in Cobra was the
failure of Helm's acceptance-testing repo, I prefer to continue have
the test fail if the help ever goes to stderr.
marckhouzam added a commit to VilledeMontreal/acceptance-testing that referenced this pull request Jan 1, 2020
This reverts commit 187a774.

Cobra has reverted the change that had the help message go to stderr:
spf13/cobra#1004

Considering what allowed to notice this regression in Cobra was the
failure of Helm's acceptance-testing repo, I prefer to continue have
the test fail if the help ever goes to stderr.

Signed-off-by: Marc Khouzam <[email protected]>
marckhouzam added a commit to helm/acceptance-testing that referenced this pull request Feb 2, 2020
This reverts commit 187a774.

Cobra has reverted the change that had the help message go to stderr:
spf13/cobra#1004

Considering what allowed to notice this regression in Cobra was the
failure of Helm's acceptance-testing repo, I prefer to continue have
the test fail if the help ever goes to stderr.

Signed-off-by: Marc Khouzam <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in cobra; unintended behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible breaking change: help now goes to STDERR
3 participants