From 3bb1cadc239cdc342f431141ff487ac838876ec2 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 24 Jul 2026 14:50:49 +0100 Subject: [PATCH] docs: don't show fully hidden backend options in the backend docs Backend options with Hide: fs.OptionHideBoth are hidden from the config wizard and from the command line flag listing, but "rclone help backend" (and therefore the autogenerated backend documentation) still showed them. Skip them there too so fully hidden options no longer appear in the docs. --- cmd/help.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/help.go b/cmd/help.go index 73fc108a7..25ee669a8 100644 --- a/cmd/help.go +++ b/cmd/help.go @@ -292,6 +292,10 @@ func showBackend(name string) { continue } done[opt.Name] = struct{}{} + // Skip options hidden from both the command line and the configurator + if opt.Hide&fs.OptionHideBoth == fs.OptionHideBoth { + continue + } if opt.Advanced { advancedOptions = append(advancedOptions, opt) } else {