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

filter: raise --include and --exclude warning to ERROR so it appears without -v

Nick Craig-Wood935533e57f1e
diff --git a/fs/filter/filter.go b/fs/filter/filter.go
index fd4da9676..c63ce9ade 100644
--- a/fs/filter/filter.go
+++ b/fs/filter/filter.go
@@ -173,7 +173,7 @@ func NewFilter(opt *Opt) (f *Filter, err error) {
}
if addImplicitExclude && foundExcludeRule {
- fs.Infof(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
+ fs.Errorf(nil, "Using --filter is recommended instead of both --include and --exclude as the order they are parsed in is indeterminate")
}
for _, rule := range f.Opt.FilterRule {