From b1195d1aefc43cc239348658618935d582b12ced Mon Sep 17 00:00:00 2001 From: Gary Miller Date: Wed, 17 Jan 2018 17:50:02 +1100 Subject: [PATCH] mergePersistentFlags in Traverse --- command.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command.go b/command.go index 5fefb58d..23264902 100644 --- a/command.go +++ b/command.go @@ -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