diff --git a/plugins/components/conversionlayer.go b/plugins/components/conversionlayer.go index 7dcae1889..802da016b 100644 --- a/plugins/components/conversionlayer.go +++ b/plugins/components/conversionlayer.go @@ -408,11 +408,9 @@ func fillFlagMaps(c *Context, baseContext *cli.Context, originalFlags []Flag) er } if boolFlag, ok := flag.(BoolFlag); ok { - if baseContext.IsSet(boolFlag.Name) { - finalValue, skip := getValueForBoolFlag(boolFlag, baseContext) - if !skip { - c.boolFlags[boolFlag.Name] = finalValue - } + finalValue, skip := getValueForBoolFlag(boolFlag, baseContext) + if !skip { + c.boolFlags[boolFlag.Name] = finalValue } } }