]> Sergey Matveev's repositories - btrtrc.git/commitdiff
cmd/torrent: Fix download command default flags
authorMatt Joiner <anacrolix@gmail.com>
Wed, 9 Dec 2020 09:01:33 +0000 (20:01 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 9 Dec 2020 09:01:33 +0000 (20:01 +1100)
cmd/torrent/main.go

index ebb0cdfd92b3bd7392dd188f54afe5b73929ef0f..d860ca4fddbc7d51b35c84ab05fbd3272cfedec8 100644 (file)
@@ -178,22 +178,22 @@ type DownloadCmd struct {
        Seed            bool          `help:"seed after download is complete"`
        Addr            string        `help:"network listen addr"`
        UploadRate      tagflag.Bytes `help:"max piece bytes to send per second" default:"-1"`
-       DownloadRate    tagflag.Bytes `help:"max bytes per second down from peers"`
+       DownloadRate    tagflag.Bytes `help:"max bytes per second down from peers" default:"-1"`
        PackedBlocklist string
        PublicIP        net.IP
-       Progress        bool
+       Progress        bool `default:"true"`
        PieceStates     bool
        Quiet           bool `help:"discard client logging"`
-       Dht             bool
+       Dht             bool `default:"true"`
 
-       TcpPeers        bool
-       UtpPeers        bool
-       Webtorrent      bool
+       TcpPeers        bool `default:"true"`
+       UtpPeers        bool `default:"true"`
+       Webtorrent      bool `default:"true"`
        DisableWebseeds bool
 
-       Ipv4 bool
-       Ipv6 bool
-       Pex  bool
+       Ipv4 bool `default:"true"`
+       Ipv6 bool `default:"true"`
+       Pex  bool `default:"true"`
 
        File    []string
        Torrent []string `arity:"+" help:"torrent file path or magnet uri" arg:"positional"`