From: Matt Joiner Date: Wed, 9 Dec 2020 09:01:33 +0000 (+1100) Subject: cmd/torrent: Fix download command default flags X-Git-Tag: v1.19.0~6 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=143bf42f5ebe4c77eb7fc6c57c25fec19429a59e;p=btrtrc.git cmd/torrent: Fix download command default flags --- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index ebb0cdfd..d860ca4f 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -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"`