docs: make command group options subsections of main options

This commit is contained in:
albertony 2024-08-12 17:20:02 +02:00
parent 874616a73e
commit 91c6faff71

View File

@ -193,7 +193,7 @@ rclone.org website.`,
groups := flags.All.Include(groupsString) groups := flags.All.Include(groupsString)
for _, group := range groups.Groups { for _, group := range groups.Groups {
if group.Flags.HasFlags() { if group.Flags.HasFlags() {
_, _ = fmt.Fprintf(&out, "\n### %s Options\n\n", group.Name) _, _ = fmt.Fprintf(&out, "\n#### %s Options\n\n", group.Name)
_, _ = fmt.Fprintf(&out, "%s\n\n", group.Help) _, _ = fmt.Fprintf(&out, "%s\n\n", group.Help)
_, _ = fmt.Fprintln(&out, "```") _, _ = fmt.Fprintln(&out, "```")
_, _ = out.WriteString(group.Flags.FlagUsages()) _, _ = out.WriteString(group.Flags.FlagUsages())