mergePersistentFlags in Traverse

This commit is contained in:
Gary Miller 2018-01-17 17:50:02 +11:00
parent 0c34d16c31
commit b1195d1aef

View file

@ -576,6 +576,8 @@ func (c *Command) Traverse(args []string) (*Command, []string, error) {
flags := []string{}
inFlag := false
c.mergePersistentFlags()
for i, arg := range args {
switch {
// A long flag with a space separated value