Skip to content

Commit

Permalink
goversion: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Feb 22, 2018
1 parent 436d770 commit 04f0b81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ the Go version used to build that executable.

Usage:

goversion [-crypto] [-v] path...
goversion [-crypto] [-m | -mh] [-v] path...

The list of paths can be individual files or directories; if the latter,
goversion scans all files in the directory tree, not following symlinks.
Expand All @@ -16,6 +16,12 @@ Goversion scans inside of tar or gzipped tar archives that it finds (named
The `-crypto` flag causes goversion to print additional information about the
crypto libraries linked into each executable.

The -m flag causes goversion to print the list of modules
found in the executable, along with version information.

The -mh flag causes goversion to print the list of modules
found in the executable, along with version and hash information.

The `-v` flag causes goversion to print information about every file it
considers.

Expand Down
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
// The -crypto flag causes goversion to print additional information
// about the crypto libraries linked into each executable.
//
// The -m flag causes goversion to print the list of modules
// found in the executable, along with version information.
//
// The -mh flag causes goversion to print the list of modules
// found in the executable, along with version and hash information.
//
// The -v flag causes goversion to print information about every
// file it considers.
//
Expand Down

0 comments on commit 04f0b81

Please sign in to comment.