vendor: update spf13/cobra to fix arg parsing

This commit is contained in:
Nick Craig-Wood 2017-05-12 19:49:32 +01:00
parent 8b61692754
commit 0c92a64bb3
7 changed files with 29 additions and 14 deletions

View file

@ -1275,8 +1275,8 @@ func (c *Command) Parent() *Command {
// mergePersistentFlags merges c.PersistentFlags() to c.Flags()
// and adds missing persistent flags of all parents.
func (c *Command) mergePersistentFlags() {
c.Flags().AddFlagSet(c.PersistentFlags())
c.updateParentsPflags()
c.Flags().AddFlagSet(c.PersistentFlags())
c.Flags().AddFlagSet(c.parentsPflags)
}