mirror of
https://github.com/rclone/rclone.git
synced 2025-02-21 04:38:26 +08:00
help/showBackend: fixed advanced option category when there are no standard options
This commit is contained in:
parent
4e43fa746a
commit
898782ac35
@ -300,6 +300,7 @@ func showBackend(name string) {
|
||||
optionsType := "standard"
|
||||
for _, opts := range []fs.Options{standardOptions, advancedOptions} {
|
||||
if len(opts) == 0 {
|
||||
optionsType = "advanced"
|
||||
continue
|
||||
}
|
||||
fmt.Printf("### %s Options\n\n", strings.Title(optionsType))
|
||||
|
Loading…
x
Reference in New Issue
Block a user