Adds version information
2 files changed, 5 insertions(+), 0 deletions(-) M README.txt M autocompare/main.go
M README.txt +4 -0
@@ 1,3 1,7 @@ +To build: + + go install -ldflags "-X main.version 1.0.1" autocompare/autocompare + This autocompare slowly eats memory, at the rate of about 44MB per minute. mkdir run1
M autocompare/main.go +1 -0
@@ 45,6 45,7 @@ func main() { profile := flag.String("prof", "", "Profile and write to this file") help := flag.Bool("h", false, "Print usage information") flag.Usage = func() { + fmt.Printf("%s v%s\n", os.Args[0], version) fmt.Printf("Usage: %s [options] <input-csv>\n", os.Args[0]) flag.PrintDefaults() }