docs: fix backend doc generator to not output duplicate config names

This was always the intention, it was just implemented wrong.

This shortens the s3 docs by 1369 bringing them down to half the size
just about.

Fixes #7325
This commit is contained in:
Nick Craig-Wood 2023-09-22 18:16:00 +01:00
parent 9d8a40b813
commit 82ca5295f4
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ func showBackend(name string) {
if _, doneAlready := done[opt.Name]; doneAlready {
continue
}
done[opt.Name] = struct{}{}
if opt.Advanced {
advancedOptions = append(advancedOptions, opt)
} else {