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

View File

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