mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47:12 +00:00
Add Parent FlagSet
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
This commit is contained in:
parent
0580724b5f
commit
0c653d6e38
1 changed files with 1 additions and 1 deletions
|
@ -1672,7 +1672,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
|
||||
|
|
Loading…
Reference in a new issue