TUN-3715: Apply input source to the correct context

This commit is contained in:
Igor Postelnik 2021-03-17 09:43:49 -05:00
parent 89d0e45d62
commit 9023daba24
1 changed files with 1 additions and 1 deletions

View File

@ -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