]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix documentation
authorAlexandre Cesaro <alexandre.cesaro@gmail.com>
Fri, 12 Jun 2015 10:16:07 +0000 (12:16 +0200)
committerIan Lance Taylor <iant@golang.org>
Fri, 12 Jun 2015 13:23:14 +0000 (13:23 +0000)
The command "go tool pprof help" does not work:

    $ go tool pprof help
    open help: no such file or directory

The right command is "go tool pprof -h".

Change-Id: Icef5d4ab76774905854e46665ac1166d26d35f46
Reviewed-on: https://go-review.googlesource.com/10970
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/test.go

index 6fe434de86c69ad4c66fecf5055f50b3ecbb1433..9001562e5a1d0659b52a01d1d9fbc4ea11dce5d6 100644 (file)
@@ -1103,7 +1103,7 @@ The 'go test' command takes both flags that apply to 'go test' itself
 and flags that apply to the resulting test binary.
 
 Several of the flags control profiling and write an execution profile
-suitable for "go tool pprof"; run "go tool pprof help" for more
+suitable for "go tool pprof"; run "go tool pprof -h" for more
 information.  The --alloc_space, --alloc_objects, and --show_bytes
 options of pprof control how the information is presented.
 
index 9746bbd3af2671e46ea1c0dff88c87a49ab7862b..b89ab7570e7e8b2dd571a89dee261eefb20ec5a7 100644 (file)
@@ -107,7 +107,7 @@ The 'go test' command takes both flags that apply to 'go test' itself
 and flags that apply to the resulting test binary.
 
 Several of the flags control profiling and write an execution profile
-suitable for "go tool pprof"; run "go tool pprof help" for more
+suitable for "go tool pprof"; run "go tool pprof -h" for more
 information.  The --alloc_space, --alloc_objects, and --show_bytes
 options of pprof control how the information is presented.