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

config: show more user friendly names of custom types in ui

albertony9c9487365ff2
diff --git a/fs/config/ui.go b/fs/config/ui.go
index c58fb92e4..694548b71 100644
--- a/fs/config/ui.go
+++ b/fs/config/ui.go
@@ -495,7 +495,7 @@ func ChooseOption(o *fs.Option, name string) string {
case uint, byte, uint16, uint32, uint64:
what = "unsigned integer"
default:
- what = fmt.Sprintf("%T value", o.Default)
+ what = fmt.Sprintf("value of type %s", o.Type())
}
}
var in string