"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmd: fix boolean backend flags - fixes #2402
Nick Craig-Woodb1f31c2acf4f
diff --git a/cmd/cmd.go b/cmd/cmd.goindex 903b44f1f..adc7aaafd 100644--- a/cmd/cmd.go+++ b/cmd/cmd.go@@ -523,7 +523,7 @@ func AddBackendFlags() {}help = strings.TrimSpace(help)flag := pflag.CommandLine.VarPF(opt, name, string(opt.ShortOpt), help)- if _, isBool := opt.Value.(bool); isBool {+ if _, isBool := opt.Default.(bool); isBool {flag.NoOptDefVal = "true"}// Hide on the command line if requested