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

help: add short options to backend documentation also

Nick Craig-Woodae2edc3b5bcf
diff --git a/cmd/help.go b/cmd/help.go
index 963678ce2..d81fcba7c 100644
--- a/cmd/help.go
+++ b/cmd/help.go
@@ -316,7 +316,11 @@ func showBackend(name string) {
optionsType = "advanced"
for _, opt := range opts {
done[opt.Name] = struct{}{}
- fmt.Printf("#### --%s\n\n", opt.FlagName(backend.Prefix))
+ shortOpt := ""
+ if opt.ShortOpt != "" {
+ shortOpt = fmt.Sprintf(" / -%s", opt.ShortOpt)
+ }
+ fmt.Printf("#### --%s%s\n\n", opt.FlagName(backend.Prefix), shortOpt)
fmt.Printf("%s\n\n", opt.Help)
fmt.Printf("- Config: %s\n", opt.Name)
fmt.Printf("- Env Var: %s\n", opt.EnvVarName(backend.Prefix))