aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/nm
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2013-09-16 16:13:27 +1000
committerRob Pike <r@golang.org>2013-09-16 16:13:27 +1000
commit2ec53b07053fa8d974759661de3881aacef8c6db (patch)
tree6e940628e2e5c857ac57ae025f458fcc9d0c6ff1 /src/cmd/nm
parent5dd74175d4c80fbe3a3dfda31bdc3ac745266baa (diff)
downloadgo-2ec53b07053fa8d974759661de3881aacef8c6db.tar.xz
cmd/nm: put the -S flag in the usage message
The -S flag reports symbol size, but is missing from the usage message. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/13660046
Diffstat (limited to 'src/cmd/nm')
-rw-r--r--src/cmd/nm/doc.go2
-rw-r--r--src/cmd/nm/nm.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/nm/doc.go b/src/cmd/nm/doc.go
index 480c1c3dde..8e88e2e639 100644
--- a/src/cmd/nm/doc.go
+++ b/src/cmd/nm/doc.go
@@ -17,7 +17,7 @@ This implementation adds the flag -S, which prints each symbol's size
in decimal after its address.
Usage:
- go tool nm [-aghnsTu] file
+ go tool nm [-aghnsSTu] file
*/
package main
diff --git a/src/cmd/nm/nm.c b/src/cmd/nm/nm.c
index aa056b8825..b5e1ca0b6b 100644
--- a/src/cmd/nm/nm.c
+++ b/src/cmd/nm/nm.c
@@ -72,7 +72,7 @@ void zenter(Sym*);
void
usage(void)
{
- fprint(2, "usage: nm [-aghnsTu] file ...\n");
+ fprint(2, "usage: nm [-aghnsSTu] file ...\n");
exits("usage");
}