]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: make go tool suggest 'go doc cmd/<command>'
authorAlberto Donizetti <alb.donizetti@gmail.com>
Tue, 15 Aug 2017 21:49:12 +0000 (23:49 +0200)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Wed, 16 Aug 2017 09:49:38 +0000 (09:49 +0000)
$ gotip tool -h says:

  For more about each tool command, see 'go tool command -h'.

But it's better to suggest

  go doc cmd/<command>

Fixes #18313

Change-Id: I0a36d585906a5e1879e5b7927d1b6173e97cb500
Reviewed-on: https://go-review.googlesource.com/55990
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/tool/tool.go

index 7dd7ba90f0941e0b4373a260bd57c93be5f6ace4..c3d75ee7930c12f80f19dbe379c0782bb2b45e0c 100644 (file)
 // The -n flag causes tool to print the command that would be
 // executed but not execute it.
 //
-// For more about each tool command, see 'go tool command -h'.
+// For more about each tool command, see 'go doc cmd/<command>'.
 //
 //
 // Print Go version
index 51675262e590bc2d5d25b42527b73f17216727e1..db92884f6aa53b9950c2b4d355920764c1308262 100644 (file)
@@ -27,7 +27,7 @@ With no arguments it prints the list of known tools.
 The -n flag causes tool to print the command that would be
 executed but not execute it.
 
-For more about each tool command, see 'go tool command -h'.
+For more about each tool command, see 'go doc cmd/<command>'.
 `,
 }