diff options
Diffstat (limited to 'src/cmd/nm')
| -rw-r--r-- | src/cmd/nm/nm.go | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/cmd/nm/nm.go b/src/cmd/nm/nm.go index 4384af8fae..2e2dd75018 100644 --- a/src/cmd/nm/nm.go +++ b/src/cmd/nm/nm.go @@ -15,8 +15,21 @@ import ( "cmd/internal/objfile" ) +const helpText = `usage: go tool nm [options] file... + -n + an alias for -sort address (numeric), + for compatibility with other nm commands + -size + print symbol size in decimal between address and type + -sort {address,name,none,size} + sort output in the given order (default name) + size orders from largest to smallest + -type + print symbol type after name +` + func usage() { - fmt.Fprintf(os.Stderr, "usage: go tool nm [-n] [-size] [-sort order] [-type] file...\n") + fmt.Fprintf(os.Stderr, helpText) os.Exit(2) } |
