diff options
Diffstat (limited to 'flags.go')
| -rw-r--r-- | flags.go | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -142,21 +142,13 @@ func ProcessFlags(callback func(*LogFlag)) { } -// probably a better name than Get() -// switch to this -func (f *LogFlag) Bool() bool { +// is the output flag disabled? +// if so, don't print anything! +func (f *LogFlag) Disabled() bool { if !f.Ok() { - return false - } - return f.b -} - -// returns the value of the flag -func (f *LogFlag) Get() bool { - if !f.Ok() { - return false + return true } - return f.b + return ! f.b } /* |
