Skip to content

Commit

Permalink
Add Parent FlagSet
Browse files Browse the repository at this point in the history
Signed-off-by: fahed dorgaa <[email protected]>
  • Loading branch information
fahedouch committed Sep 5, 2022
1 parent 0580724 commit 0c653d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0c653d6

Please sign in to comment.