mirror of
https://github.com/spf13/cobra
synced 2025-05-06 05:17:21 +00:00
inherited flags not normalized
This commit is contained in:
parent
147d04c4ac
commit
cdd5a8d607
1 changed files with 0 additions and 1 deletions
|
@ -1157,7 +1157,6 @@ func (c *Command) InheritedFlags() *flag.FlagSet {
|
||||||
}
|
}
|
||||||
|
|
||||||
local := c.LocalFlags()
|
local := c.LocalFlags()
|
||||||
c.iflags.SetNormalizeFunc(local.GetNormalizeFunc())
|
|
||||||
|
|
||||||
c.parentsPflags.VisitAll(func(f *flag.Flag) {
|
c.parentsPflags.VisitAll(func(f *flag.Flag) {
|
||||||
if c.iflags.Lookup(f.Name) == nil && local.Lookup(f.Name) == nil {
|
if c.iflags.Lookup(f.Name) == nil && local.Lookup(f.Name) == nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue