mirror of
https://github.com/rclone/rclone.git
synced 2024-11-24 17:34:57 +01:00
Make flags show up with their proper names, eg SizeSuffix rather than int
This commit is contained in:
parent
578d00666c
commit
fc1bf5f931
@ -27,7 +27,7 @@ func (l *CommaSepList) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (CommaSepList) Type() string {
|
||||
return "[]string"
|
||||
return "CommaSepList"
|
||||
}
|
||||
|
||||
// Scan implements the fmt.Scanner interface
|
||||
@ -46,7 +46,7 @@ func (l *SpaceSepList) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (SpaceSepList) Type() string {
|
||||
return "[]string"
|
||||
return "SpaceSepList"
|
||||
}
|
||||
|
||||
// Scan implements the fmt.Scanner interface
|
||||
|
@ -89,5 +89,5 @@ func (f *DumpFlags) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (f *DumpFlags) Type() string {
|
||||
return "string"
|
||||
return "DumpFlags"
|
||||
}
|
||||
|
@ -90,7 +90,7 @@ func (d *Duration) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (d Duration) Type() string {
|
||||
return "duration"
|
||||
return "Duration"
|
||||
}
|
||||
|
||||
// Scan implements the fmt.Scanner interface
|
||||
|
@ -120,7 +120,7 @@ func (x *SizeSuffix) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (x *SizeSuffix) Type() string {
|
||||
return "int64"
|
||||
return "SizeSuffix"
|
||||
}
|
||||
|
||||
// Scan implements the fmt.Scanner interface
|
||||
|
@ -59,7 +59,7 @@ func (l *CacheMode) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (l *CacheMode) Type() string {
|
||||
return "string"
|
||||
return "CacheMode"
|
||||
}
|
||||
|
||||
// cache opened files
|
||||
|
@ -30,5 +30,5 @@ func (x *FileMode) Set(s string) error {
|
||||
|
||||
// Type of the value
|
||||
func (x *FileMode) Type() string {
|
||||
return "int"
|
||||
return "FileMode"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user