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

Switch to spf13 fork of pflag - fixes #116

Nick Craig-Wood0168f55f3e2a
diff --git a/drive/drive.go b/drive/drive.go
index a64aca415..30430c474 100644
--- a/drive/drive.go
+++ b/drive/drive.go
@@ -23,7 +23,7 @@ import (
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil"
- "github.com/ogier/pflag"
+ "github.com/spf13/pflag"
)
// Constants
diff --git a/dropbox/dropbox.go b/dropbox/dropbox.go
index 849f0f3ee..391a4aa8e 100644
--- a/dropbox/dropbox.go
+++ b/dropbox/dropbox.go
@@ -21,7 +21,7 @@ import (
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil"
- "github.com/ogier/pflag"
+ "github.com/spf13/pflag"
"github.com/stacktic/dropbox"
)
diff --git a/fs/config.go b/fs/config.go
index 02ca3d65a..5adde7c11 100644
--- a/fs/config.go
+++ b/fs/config.go
@@ -18,7 +18,7 @@ import (
"github.com/Unknwon/goconfig"
"github.com/mreiferson/go-httpclient"
- "github.com/ogier/pflag"
+ "github.com/spf13/pflag"
)
const (
@@ -113,6 +113,11 @@ func (x *SizeSuffix) Set(s string) error {
return nil
}
+// Type of the value
+func (x *SizeSuffix) Type() string {
+ return "int64"
+}
+
// Check it satisfies the interface
var _ pflag.Value = (*SizeSuffix)(nil)
diff --git a/rclone.go b/rclone.go
index c6128a5d9..35c93050b 100644
--- a/rclone.go
+++ b/rclone.go
@@ -12,7 +12,7 @@ import (
"strings"
"time"
- "github.com/ogier/pflag"
+ "github.com/spf13/pflag"
"github.com/ncw/rclone/fs"
// Active file systems