Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Pass flags on to fs.Config

Nick Craig-Wood025e5f3f0c9c
diff --git a/rclone.go b/rclone.go
index 5124ad755..232bbb09b 100644
--- a/rclone.go
+++ b/rclone.go
@@ -518,6 +518,13 @@ func main() {
args := flag.Args()
runtime.GOMAXPROCS(runtime.NumCPU())
+ // Pass on some flags to fs.Config
+ fs.Config.Verbose = *verbose
+ fs.Config.Quiet = *quiet
+ fs.Config.ModifyWindow = *modifyWindow
+ fs.Config.Checkers = *checkers
+ fs.Config.Transfers = *transfers
+
// Setup profiling if desired
if *cpuprofile != "" {
f, err := os.Create(*cpuprofile)