]> Sergey Matveev's repositories - btrtrc.git/commitdiff
cmd/torrent-create: Improve spelling and descriptions
authorMatt Joiner <anacrolix@gmail.com>
Thu, 16 Jun 2016 02:27:49 +0000 (12:27 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Thu, 16 Jun 2016 02:27:49 +0000 (12:27 +1000)
cmd/torrent-create/main.go

index 46840f01982a3f72e5d6e5c3fcad849740409e04..399c06811f4ae5f5ebb1a308e83286a218bd1f97 100644 (file)
@@ -20,15 +20,15 @@ var (
 func main() {
        log.SetFlags(log.Flags() | log.Lshortfile)
        var args struct {
-               AnnonceList []string `name:"a" help:"add annonce server"`
+               AnnounceList []string `name:"a" help:"extra announce-list tier entry"`
                tagflag.StartPos
-               Root string `help:"Creates a torrent metainfo for the file system rooted at ROOT, and outputs it to stdout."`
+               Root string
        }
-       tagflag.Parse(&args)
+       tagflag.Parse(&args, tagflag.Description("Creates a torrent metainfo for the file system rooted at ROOT, and outputs it to stdout."))
        mi := metainfo.MetaInfo{
                AnnounceList: builtinAnnounceList,
        }
-       for _, a := range args.AnnonceList {
+       for _, a := range args.AnnounceList {
                mi.AnnounceList = append(mi.AnnounceList, []string{a})
        }
        mi.SetDefaults()