@@ -148,10 +148,12 @@ func printNodeDetail(w *helpWriter, node *Node, hide bool) {
|
|||||||
for _, group := range groupedFlags {
|
for _, group := range groupedFlags {
|
||||||
w.Print("")
|
w.Print("")
|
||||||
if group.Metadata.Title != "" {
|
if group.Metadata.Title != "" {
|
||||||
w.Print(group.Metadata.Title)
|
w.Wrap(group.Metadata.Title)
|
||||||
}
|
}
|
||||||
if group.Metadata.Description != "" {
|
if group.Metadata.Description != "" {
|
||||||
w.Print(group.Metadata.Description)
|
w.Print("")
|
||||||
|
w.Wrap(group.Metadata.Description)
|
||||||
|
w.Print("")
|
||||||
}
|
}
|
||||||
writeFlags(w.Indent(), group.Flags)
|
writeFlags(w.Indent(), group.Flags)
|
||||||
}
|
}
|
||||||
@@ -168,10 +170,12 @@ func printNodeDetail(w *helpWriter, node *Node, hide bool) {
|
|||||||
for _, group := range groupedCmds {
|
for _, group := range groupedCmds {
|
||||||
w.Print("")
|
w.Print("")
|
||||||
if group.Metadata.Title != "" {
|
if group.Metadata.Title != "" {
|
||||||
w.Print(group.Metadata.Title)
|
w.Wrap(group.Metadata.Title)
|
||||||
}
|
}
|
||||||
if group.Metadata.Description != "" {
|
if group.Metadata.Description != "" {
|
||||||
w.Print(group.Metadata.Description)
|
w.Print("")
|
||||||
|
w.Wrap(group.Metadata.Description)
|
||||||
|
w.Print("")
|
||||||
}
|
}
|
||||||
|
|
||||||
if w.Compact {
|
if w.Compact {
|
||||||
|
|||||||
@@ -323,7 +323,9 @@ Flags:
|
|||||||
--free-bool A non grouped bool flag.
|
--free-bool A non grouped bool flag.
|
||||||
|
|
||||||
Group title taken from the kong.ExplicitGroups option
|
Group title taken from the kong.ExplicitGroups option
|
||||||
|
|
||||||
A group header
|
A group header
|
||||||
|
|
||||||
--grouped-a-string=STRING A string flag grouped in A.
|
--grouped-a-string=STRING A string flag grouped in A.
|
||||||
--grouped-a-bool A bool flag grouped in A.
|
--grouped-a-bool A bool flag grouped in A.
|
||||||
|
|
||||||
@@ -335,7 +337,9 @@ Commands:
|
|||||||
A non grouped subcommand.
|
A non grouped subcommand.
|
||||||
|
|
||||||
Group title taken from the kong.ExplicitGroups option
|
Group title taken from the kong.ExplicitGroups option
|
||||||
|
|
||||||
A group header
|
A group header
|
||||||
|
|
||||||
one thing <arg>
|
one thing <arg>
|
||||||
subcommand thing
|
subcommand thing
|
||||||
|
|
||||||
@@ -379,7 +383,9 @@ Flags:
|
|||||||
--a-free-string=STRING A non grouped string flag.
|
--a-free-string=STRING A non grouped string flag.
|
||||||
|
|
||||||
Group title taken from the kong.ExplicitGroups option
|
Group title taken from the kong.ExplicitGroups option
|
||||||
|
|
||||||
A group header
|
A group header
|
||||||
|
|
||||||
--grouped-a-string=STRING A string flag grouped in A.
|
--grouped-a-string=STRING A string flag grouped in A.
|
||||||
--grouped-a-bool A bool flag grouped in A.
|
--grouped-a-bool A bool flag grouped in A.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user