cmd/torrent/main.go | 6 +++++- diff --git a/cmd/torrent/main.go b/cmd/torrent/main.go index 570f8bfac3853aa1740b38fbb562738d49ee9908..67b5122bbff75eb653f00fe44d1a94199ef5feee 100644 --- a/cmd/torrent/main.go +++ b/cmd/torrent/main.go @@ -132,11 +132,13 @@ Debug bool PackedBlocklist string Stats *bool PublicIP net.IP + Progress bool tagflag.StartPos Torrent []string `arity:"+" help:"torrent file path or magnet uri"` }{ UploadRate: -1, DownloadRate: -1, + Progress: true, } func stdoutAndStderrAreSameFile() bool { @@ -207,7 +209,9 @@ }) if stdoutAndStderrAreSameFile() { log.SetOutput(progress.Bypass()) } - progress.Start() + if flags.Progress { + progress.Start() + } addTorrents(client) if client.WaitAll() { log.Print("downloaded ALL the torrents")