]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/nm: put the -S flag in the usage message
authorRob Pike <r@golang.org>
Mon, 16 Sep 2013 06:13:27 +0000 (16:13 +1000)
committerRob Pike <r@golang.org>
Mon, 16 Sep 2013 06:13:27 +0000 (16:13 +1000)
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

src/cmd/nm/doc.go
src/cmd/nm/nm.c

index 480c1c3dde492137f4d7d6e8a7978435df974c06..8e88e2e6395fa49aa130456a9f4c210346dbd602 100644 (file)
@@ -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
index aa056b88253bf4948cc9c60d2e0479fba335257e..b5e1ca0b6b7adbec73659cf12efdfc3de57c54e8 100644 (file)
@@ -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");
 }