]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: change -x to -src, update doc.go (missed in previous CL)
authorRobert Griesemer <gri@golang.org>
Wed, 10 Mar 2010 23:41:36 +0000 (15:41 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 10 Mar 2010 23:41:36 +0000 (15:41 -0800)
R=rsc
CC=golang-dev
https://golang.org/cl/384044

src/cmd/godoc/doc.go
src/cmd/godoc/main.go

index 701b0e177ca39ee32679de7ba1c8abd140c446f0..866cff308fd8ce449712e2782c29ea119bc2b0dc 100644 (file)
@@ -23,6 +23,8 @@ Usage:
 The flags are:
        -v
                verbose mode
+       -src
+               print exported source in command-line mode
        -tabwidth=4
                width of tabs in units of spaces
        -path=""
index 9f92c6cffcd4de8f0c32b9794399fc732db6da2e..5436088f74596f3a284802f5cbfb4e42f8cf60b9 100644 (file)
@@ -48,7 +48,7 @@ var (
 
        // layout control
        html   = flag.Bool("html", false, "print HTML in command-line mode")
-       genAST = flag.Bool("x", false, "print exported source in command-line mode")
+       genAST = flag.Bool("src", false, "print exported source in command-line mode")
 )