We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d327e1a commit c649d68Copy full SHA for c649d68
cmd/devp2p/main.go
@@ -66,9 +66,15 @@ func commandHasFlag(ctx *cli.Context, flag cli.Flag) bool {
66
for _, name := range names {
67
set[name] = struct{}{}
68
}
69
- for _, fn := range ctx.FlagNames() {
70
- if _, ok := set[fn]; ok {
71
- return true
+ for _, ctx := range ctx.Lineage() {
+ if ctx.Command != nil {
+ for _, f := range ctx.Command.Flags {
72
+ for _, name := range f.Names() {
73
+ if _, ok := set[name]; ok {
74
+ return true
75
+ }
76
77
78
79
80
return false
0 commit comments