Support a simplified kong.Groups{<key>: <title>} way of specifiying groups.
See #135.
This commit is contained in:
@@ -150,8 +150,8 @@ func printNodeDetail(w *helpWriter, node *Node, hide bool) {
|
||||
if group.Metadata.Title != "" {
|
||||
w.Print(group.Metadata.Title)
|
||||
}
|
||||
if group.Metadata.Header != "" {
|
||||
w.Print(group.Metadata.Header)
|
||||
if group.Metadata.Description != "" {
|
||||
w.Print(group.Metadata.Description)
|
||||
}
|
||||
writeFlags(w.Indent(), group.Flags)
|
||||
}
|
||||
@@ -170,8 +170,8 @@ func printNodeDetail(w *helpWriter, node *Node, hide bool) {
|
||||
if group.Metadata.Title != "" {
|
||||
w.Print(group.Metadata.Title)
|
||||
}
|
||||
if group.Metadata.Header != "" {
|
||||
w.Print(group.Metadata.Header)
|
||||
if group.Metadata.Description != "" {
|
||||
w.Print(group.Metadata.Description)
|
||||
}
|
||||
|
||||
if w.Compact {
|
||||
|
||||
Reference in New Issue
Block a user