fix broken group command descriptions if available
This commit is contained in:
parent
d484347aa3
commit
de1c898f0d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user