diff --git a/src/cmd/godoc/doc.go b/src/cmd/godoc/doc.go index 701b0e177ca..866cff308fd 100644 --- a/src/cmd/godoc/doc.go +++ b/src/cmd/godoc/doc.go @@ -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="" diff --git a/src/cmd/godoc/main.go b/src/cmd/godoc/main.go index 9f92c6cffcd..5436088f745 100644 --- a/src/cmd/godoc/main.go +++ b/src/cmd/godoc/main.go @@ -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") )