1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

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)
for _, group := range groups.Groups {
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.Fprintln(&out, "```")
_, _ = out.WriteString(group.Flags.FlagUsages())