Switch to spf13 fork of pflag - fixes #116

This supports --long value as well as --long=value which is as
expected for a unix utility.
s3-about
Nick Craig-Wood 2015-08-29 18:14:24 +01:00
parent 8b60ab86a1
commit 0168f55f3e
4 changed files with 9 additions and 4 deletions

View File

@ -23,7 +23,7 @@ import (
"github.com/ncw/rclone/fs"
"github.com/ncw/rclone/oauthutil"
"github.com/ogier/pflag"
"github.com/spf13/pflag"
)
// Constants

View File

@ -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"
)

View File

@ -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)

View File

@ -12,7 +12,7 @@ import (
"strings"
"time"
"github.com/ogier/pflag"
"github.com/spf13/pflag"
"github.com/ncw/rclone/fs"
// Active file systems