mirror of
https://github.com/spf13/cobra
synced 2024-11-25 07:07:15 +00:00
mergePersistentFlags in Traverse
This commit is contained in:
parent
0c34d16c31
commit
b1195d1aef
1 changed files with 2 additions and 0 deletions
|
@ -576,6 +576,8 @@ func (c *Command) Traverse(args []string) (*Command, []string, error) {
|
||||||
flags := []string{}
|
flags := []string{}
|
||||||
inFlag := false
|
inFlag := false
|
||||||
|
|
||||||
|
c.mergePersistentFlags()
|
||||||
|
|
||||||
for i, arg := range args {
|
for i, arg := range args {
|
||||||
switch {
|
switch {
|
||||||
// A long flag with a space separated value
|
// A long flag with a space separated value
|
||||||
|
|
Loading…
Reference in a new issue