From 9959712a06d19e1bc7f8925b66b1c5c36fb3d0f5 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 22 Sep 2023 18:16:00 +0100 Subject: [PATCH] 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 --- cmd/help.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/help.go b/cmd/help.go index f44153e6d..ef43a1c0f 100644 --- a/cmd/help.go +++ b/cmd/help.go @@ -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 {