TUN-3715: Apply input source to the correct context
This commit is contained in:
parent
89d0e45d62
commit
9023daba24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue