summaryrefslogtreecommitdiff
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
commit7e3bb53a5d1a1e7332a397482731851b75a527bb (patch)
tree19665f9d6d0cec59c82214f96c3d0222b1dae636 /src/cmd/nm
parentbdbd7234f06749ff953c53f3423ee36352257690 (diff)
downloadgo-7e3bb53a5d1a1e7332a397482731851b75a527bb.tar.gz
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://codereview.appspot.com/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 480c1c3dd..8e88e2e63 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 aa056b882..b5e1ca0b6 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");
}