Make flags show up with their proper names, eg SizeSuffix rather than int

s3-about
Nick Craig-Wood 2019-02-07 11:57:26 +00:00
parent 578d00666c
commit fc1bf5f931
6 changed files with 7 additions and 7 deletions

View File

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

View File

@ -89,5 +89,5 @@ func (f *DumpFlags) Set(s string) error {
// Type of the value
func (f *DumpFlags) Type() string {
return "string"
return "DumpFlags"
}

View File

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

View File

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

View File

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

View File

@ -30,5 +30,5 @@ func (x *FileMode) Set(s string) error {
// Type of the value
func (x *FileMode) Type() string {
return "int"
return "FileMode"
}