From: Matt Joiner Date: Fri, 6 May 2016 05:09:59 +0000 (+1000) Subject: cmd/torrent-infohash update for API changes X-Git-Tag: v1.0.0~749 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9c36d366542e69cb8a6ec99096337a2af59ba548;p=btrtrc.git cmd/torrent-infohash update for API changes --- diff --git a/cmd/torrent-infohash/main.go b/cmd/torrent-infohash/main.go index 4fb7004b..93ae336a 100644 --- a/cmd/torrent-infohash/main.go +++ b/cmd/torrent-infohash/main.go @@ -5,11 +5,13 @@ import ( "log" "github.com/anacrolix/tagflag" + "github.com/anacrolix/torrent/metainfo" ) func main() { var args struct { + tagflag.StartPos Files []string `arity:"+" type:"pos"` } tagflag.Parse(&args) @@ -18,6 +20,6 @@ func main() { if err != nil { log.Fatal(err) } - fmt.Printf("%x: %s\n", mi.Info.Hash, arg) + fmt.Printf("%s: %s\n", mi.Info.Hash().HexString(), arg) } }