From 193605461544a89c52bac7817d0f889c7accdb0b Mon Sep 17 00:00:00 2001
From: Matt Joiner <anacrolix@gmail.com>
Date: Mon, 2 May 2016 19:14:49 +1000
Subject: [PATCH] cmd/torrent-metainfo-pprint: Also print InfoHash

---
 cmd/torrent-metainfo-pprint/main.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/torrent-metainfo-pprint/main.go b/cmd/torrent-metainfo-pprint/main.go
index 9b62b223..9f7a0d9f 100644
--- a/cmd/torrent-metainfo-pprint/main.go
+++ b/cmd/torrent-metainfo-pprint/main.go
@@ -37,6 +37,7 @@ func main() {
 			"Name":        info.Name,
 			"NumPieces":   info.NumPieces(),
 			"PieceLength": info.PieceLength,
+			"InfoHash":    metainfo.Info.Hash.HexString(),
 		}
 		if flags.PieceHashes {
 			d["PieceHashes"] = func() (ret []string) {
-- 
2.51.0