diff --git a/flags.go b/flags.go index a93b74a..78d8b5e 100644 --- a/flags.go +++ b/flags.go @@ -151,6 +151,15 @@ func (f *LogFlag) Disabled() bool { return ! f.b } +// just the opposite of Disabled() +// both are here just for code readability +func (f *LogFlag) Enabled() bool { + if !f.Ok() { + return false + } + return f.b +} + /* func (f *LogFlag) Set(b bool) { if ! f.Ok() {}