diff --git a/cmd/cloudflared/cliutil/handler.go b/cmd/cloudflared/cliutil/handler.go index d3cf0038..ad1f0285 100644 --- a/cmd/cloudflared/cliutil/handler.go +++ b/cmd/cloudflared/cliutil/handler.go @@ -47,7 +47,7 @@ func applyConfig(c *cli.Context, inputSource altsrc.InputSourceContext) error { targetFlags := context.Command.Flags if context.Command.Name == "" { // commands that define child subcommands are executed as if they were an app - targetFlags = c.App.Flags + targetFlags = context.App.Flags } if err := altsrc.ApplyInputSourceValues(context, inputSource, targetFlags); err != nil { return err