cmd/torrent-infohash update for API changes

This commit is contained in:
Matt Joiner 2016-05-06 15:09:59 +10:00
parent b5812bb0b7
commit 9c36d36654
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}
}