-
Notifications
You must be signed in to change notification settings - Fork 17.5k
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
flag: impossible to override the CommandLine usage #7779
Labels
Milestone
Comments
Comment 3 by jonas@pfenniger.name: Sorry for the confusion. It's possible to set flag.Usage and have a different usage output. What's not possible it to pass in CommandLine into a flagset-configuring function and have the usage updated. Here is an example: http://play.golang.org/p/uaycqgIurf Arguably this is a nitpick. The FlagSet usage() function could be changed to something like this to support both cases: https://gist.github.com/zimbatm/e652a0e7342833d73f99 |
CL https://golang.org/cl/147210043 mentions this issue. |
This issue was closed by revision b2487ef. Status changed to Fixed. |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
Fixes golang#7779. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/147210043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 26, 2018
Fixes golang#7779. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/147210043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 9, 2018
Fixes golang#7779. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/147210043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 30, 2018
Fixes golang#7779. LGTM=rsc R=golang-codereviews, rsc CC=golang-codereviews https://golang.org/cl/147210043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by jonas@pfenniger.name:
The text was updated successfully, but these errors were encountered: