This commit is contained in:
fahed dorgaa 2024-04-26 16:59:29 +02:00 committed by GitHub
commit 80334cad87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1861,7 +1861,7 @@ func (c *Command) Parent() *Command {
func (c *Command) mergePersistentFlags() {
c.updateParentsPflags()
c.Flags().AddFlagSet(c.PersistentFlags())
c.Flags().AddFlagSet(c.parentsPflags)
c.Flags().AddParentFlagSet(c.parentsPflags)
}
// updateParentsPflags updates c.parentsPflags by adding