"hash-name:commandline[,...]")
flag.Usage = func() {
fmt.Fprintf(flag.CommandLine.Output(),
- "Usage: %s [-hashes ...] < data | read hash name\n", os.Args[0])
+ "Usage: %s [-hashes ...] <data | read hash name\n", os.Args[0])
flag.PrintDefaults()
fmt.Fprint(flag.CommandLine.Output(), `
Only the first hash from -hashes will be used.
}
flag.Parse()
+ if *showVersion {
+ fmt.Println(meta4ra.Version())
+ return
+ }
+ if *showWarranty {
+ fmt.Println(meta4ra.Warranty)
+ return
+ }
+
hsh := *hashes
if i := strings.Index(hsh, ","); i != -1 {
hsh = hsh[:i]