diff --git a/pkg/flags/flag.go b/pkg/flags/flag.go index 9176df109014..b96436c6b358 100644 --- a/pkg/flags/flag.go +++ b/pkg/flags/flag.go @@ -132,8 +132,8 @@ func IsSet(fs *flag.FlagSet, name string) bool { return set } -// GetBoolFlagVal returns the value of the a given bool flag is explicitly set in the cmd line arguments, -// and returns nil if it is not explicitly set. +// GetBoolFlagVal returns the value of the a given bool flag if it is explicitly set +// in the cmd line arguments, otherwise returns nil. func GetBoolFlagVal(fs *flag.FlagSet, flagName string) (*bool, error) { if !IsSet(fs, flagName) { return nil, nil