Add support for command aliases (#130)

This commit is contained in:
Joe Schmitt
2021-01-10 15:36:13 -05:00
committed by GitHub
parent d78d607800
commit 2479d83cc0
6 changed files with 75 additions and 0 deletions
+1
View File
@@ -143,6 +143,7 @@ func buildChild(k *Kong, node *Node, typ NodeType, v reflect.Value, ft reflect.S
child.Help = tag.Help
child.Hidden = tag.Hidden
child.Group = tag.Group
child.Aliases = tag.Aliases
if provider, ok := fv.Addr().Interface().(HelpProvider); ok {
child.Detail = provider.Help()