summaryrefslogtreecommitdiff
path: root/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'flags.go')
-rw-r--r--flags.go9
1 files changed, 9 insertions, 0 deletions
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() {}