-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
adjust tests for HideDefault #1937
Conversation
@Skeeve Can you fix the conflicts with your PR and main and also run "make v3approve" in your workspace ? |
~~Is it the "diffcheck" you mean?~~~ You meant the PR you applied yesterday which conflichts with what I did. I ran v3approve here and this is what I got:
What's the purpose of "v3approve"? |
Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
…declared at ./flag.go:183:29
I have no idea how to fix the |
@Skeeve after running make v3approve you have to commit the 2 generated files. I did that for you |
Thanks, but on my side, nothing was generated :( At least I should have seen something with |
What type of PR is this?
What this PR does / why we need it:
It gives the option to hide default values from help output.
It also suppresses the
(default: false)
from the standard--version
and--help
as those make absolutely no sense.Which issue(s) this PR fixes:
#1925
Testing
I changed all standard tests to account for the new help output.
Release Notes
Default values for the automatic help texts of
--help
and--version
will be suppressed.It's also possible to suppress output of a flag's default value by setting the flag's
HideDefault
totrue
.