From fc1bf5f931ffe001d471cbdee2679ef12c0bdd55 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Thu, 7 Feb 2019 11:57:26 +0000
Subject: [PATCH] Make flags show up with their proper names, eg SizeSuffix
 rather than int

---
 fs/config_list.go        | 4 ++--
 fs/dump.go               | 2 +-
 fs/parseduration.go      | 2 +-
 fs/sizesuffix.go         | 2 +-
 vfs/cache.go             | 2 +-
 vfs/vfsflags/filemode.go | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/config_list.go b/fs/config_list.go
index ce1e5292f..31ab0eba0 100644
--- a/fs/config_list.go
+++ b/fs/config_list.go
@@ -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
diff --git a/fs/dump.go b/fs/dump.go
index ad3c98462..5d89b5abd 100644
--- a/fs/dump.go
+++ b/fs/dump.go
@@ -89,5 +89,5 @@ func (f *DumpFlags) Set(s string) error {
 
 // Type of the value
 func (f *DumpFlags) Type() string {
-	return "string"
+	return "DumpFlags"
 }
diff --git a/fs/parseduration.go b/fs/parseduration.go
index 4da162c87..94626a1fe 100644
--- a/fs/parseduration.go
+++ b/fs/parseduration.go
@@ -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
diff --git a/fs/sizesuffix.go b/fs/sizesuffix.go
index 51282d024..67b1d2c43 100644
--- a/fs/sizesuffix.go
+++ b/fs/sizesuffix.go
@@ -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
diff --git a/vfs/cache.go b/vfs/cache.go
index 66e994c35..1bab888fb 100644
--- a/vfs/cache.go
+++ b/vfs/cache.go
@@ -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
diff --git a/vfs/vfsflags/filemode.go b/vfs/vfsflags/filemode.go
index cfa39a71e..7d8eb028b 100644
--- a/vfs/vfsflags/filemode.go
+++ b/vfs/vfsflags/filemode.go
@@ -30,5 +30,5 @@ func (x *FileMode) Set(s string) error {
 
 // Type of the value
 func (x *FileMode) Type() string {
-	return "int"
+	return "FileMode"
 }