forked from TrueCloudLab/rclone
help/showBackend: fixed advanced option category when there are no standard options
This commit is contained in:
parent
4e43fa746a
commit
898782ac35
1 changed files with 1 additions and 0 deletions
|
@ -300,6 +300,7 @@ func showBackend(name string) {
|
||||||
optionsType := "standard"
|
optionsType := "standard"
|
||||||
for _, opts := range []fs.Options{standardOptions, advancedOptions} {
|
for _, opts := range []fs.Options{standardOptions, advancedOptions} {
|
||||||
if len(opts) == 0 {
|
if len(opts) == 0 {
|
||||||
|
optionsType = "advanced"
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
fmt.Printf("### %s Options\n\n", strings.Title(optionsType))
|
fmt.Printf("### %s Options\n\n", strings.Title(optionsType))
|
||||||
|
|
Loading…
Reference in a new issue