mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 00:13:49 +01:00
docs: make command group options subsections of main options
This commit is contained in:
parent
874616a73e
commit
91c6faff71
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user