mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:20:38 +08:00
help: add short options to backend documentation also
This commit is contained in:
parent
0baafb158f
commit
ae2edc3b5b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user