mirror of
https://github.com/spf13/cobra
synced 2024-11-04 21:07:19 +00:00
Merge 0c653d6e38
into 5a1acea321
This commit is contained in:
commit
80334cad87
1 changed files with 1 additions and 1 deletions
|
@ -1861,7 +1861,7 @@ func (c *Command) Parent() *Command {
|
||||||
func (c *Command) mergePersistentFlags() {
|
func (c *Command) mergePersistentFlags() {
|
||||||
c.updateParentsPflags()
|
c.updateParentsPflags()
|
||||||
c.Flags().AddFlagSet(c.PersistentFlags())
|
c.Flags().AddFlagSet(c.PersistentFlags())
|
||||||
c.Flags().AddFlagSet(c.parentsPflags)
|
c.Flags().AddParentFlagSet(c.parentsPflags)
|
||||||
}
|
}
|
||||||
|
|
||||||
// updateParentsPflags updates c.parentsPflags by adding
|
// updateParentsPflags updates c.parentsPflags by adding
|
||||||
|
|
Loading…
Reference in a new issue