diff --git a/flag_impl.go b/flag_impl.go index a8c0ac8be2..2811445963 100644 --- a/flag_impl.go +++ b/flag_impl.go @@ -37,6 +37,11 @@ func (v *valueWrapper) Get() any { return v.value.Get() } +func (v *valueWrapper) IsBoolFlag() bool { + _, ok := v.value.(*boolValue) + return ok +} + // ValueCreator is responsible for creating a flag.Value emulation // as well as custom formatting //