]> Sergey Matveev's repositories - meta4ra.git/blobdiff - cmd/meta4ra/hash.go
Prepare for release
[meta4ra.git] / cmd / meta4ra / hash.go
index 266aa61a59724db4797673acb45dc311b5069ef3..3fb98f462b253b4d6d149700f77842c47989552c 100644 (file)
@@ -40,6 +40,15 @@ 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]