fix broken group command descriptions if available

This commit is contained in:
Roberto Hidalgo 2023-09-24 14:33:44 -06:00
parent d484347aa3
commit de1c898f0d
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ func Execute(version string) error {
Arguments: command.Arguments{},
Options: command.Options{},
}
if groupParent.FullName() == cmd.FullName() {
groupParent.Summary = cmd.Summary
groupParent.Description = cmd.Description
}
Register(groupParent)
} else {
log.Tracef("using pre-existing group parent for %s (%s)", groupPath, groupParent.Path)