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
cmd/go: short commands description in 'go help' too vague for some command #20918
Comments
I guess we could clarify them by adding a very short parenthetical like:
Those strings needs to be really really short, though. I doubt a new description will be approved if it turns out too long. |
The quoted output is misleading. The full output is:
Note the last line, which is omitted in the bug report. And indeed Given this, the current short summaries seem fine. |
As you wish, but I would expect that the summary would help to tell me what the fmt/fix and vet tools do in general. Like e.g. -fmt run gofmt on package sources
+fmt use gofmt to reformat source files
-fix run go tool fix on packages
+fix automatically fix mistakes |
I like those specific suggestions. I'll send a CL. Thanks. |
Change https://golang.org/cl/73331 mentions this issue: |
Thanks! |
Fixes #20918. Change-Id: I84306242084631bbe7a9adc839f92e72ac1a3e75 Reviewed-on: https://go-review.googlesource.com/73331 Run-TryBot: Russ Cox <rsc@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go1.8.1
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
What did you do?
What did you expect to see?
The help output for the
fix
andvet
is not helpful. Is is just("run go tool %s on packages", toolname)
. Also thefmt
output could be improved.What did you see instead?
The help-output should say what the command will effectively do (like for
vet
: check the source code for potential issues).The text was updated successfully, but these errors were encountered: