cmd/torrent/main.go | 11 ++++------- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index e1fa04b4067210020e96836dc23f574f806ce452..a2a34f63afee574cb5aa846e060e4c94bb0eace5 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -178,9 +178,9 @@ PackedBlocklist string PublicIP net.IP Progress bool `default:"true"` PieceStates bool - Quiet bool `help:"discard client logging"` - Stats *bool `help:"print stats at termination"` - Dht bool `default:"true"` + Quiet bool `help:"discard client logging"` + Stats bool `help:"print stats at termination"` + Dht bool `default:"true"` TcpPeers bool `default:"true"` UtpPeers bool `default:"true"` @@ -196,10 +196,7 @@ Torrent []string `arity:"+" help:"torrent file path or magnet uri" arg:"positional"` } func statsEnabled(flags downloadFlags) bool { - if flags.Stats == nil { - return flags.Debug - } - return *flags.Stats + return flags.Stats } func exitSignalHandlers(notify *missinggo.SynchronizedEvent) {