Support a simplified kong.Groups{<key>: <title>} way of specifiying groups.

See #135.
This commit is contained in:
Alec Thomas
2021-02-09 15:08:22 +11:00
parent b68e1aba63
commit 7e27c8ecf5
5 changed files with 47 additions and 26 deletions
+1 -1
View File
@@ -232,7 +232,7 @@ func buildGroupForKey(k *Kong, key string) *Group {
}
}
// No group provided with kong.Groups. We create one ad-hoc for this key.
// No group provided with kong.ExplicitGroups. We create one ad-hoc for this key.
return &Group{
Key: key,
Title: key,