From 799609e0b4798e0f8babe61a693041c76dec2785 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 10 Mar 2010 15:41:36 -0800 Subject: [PATCH] godoc: change -x to -src, update doc.go (missed in previous CL) R=rsc CC=golang-dev https://golang.org/cl/384044 --- src/cmd/godoc/doc.go | 2 ++ src/cmd/godoc/main.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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") )