diff options
| author | jcarr <[email protected]> | 2024-02-27 02:21:00 -0600 |
|---|---|---|
| committer | jcarr <[email protected]> | 2024-02-27 02:21:00 -0600 |
| commit | 5cc617335d449c44032907414169ea0c2e8af216 (patch) | |
| tree | 57f310fc31180635ad4ff9a145370762fd0184d5 /args.go | |
initial start of a fyne plugin
Diffstat (limited to 'args.go')
| -rw-r--r-- | args.go | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -0,0 +1,30 @@ +package main + +/* + this enables command line options from other packages like 'gui' and 'log' +*/ + +import ( + log "go.wit.com/log" +) + +var NOW *log.LogFlag +var INFO *log.LogFlag + +var SPEW *log.LogFlag +var WARN *log.LogFlag + +var ERROR *log.LogFlag + +func init() { + full := "toolkit/nocui" + short := "nocui" + + NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff") + INFO = log.NewFlag("INFO", true, full, short, "normal debugging stuff") + + WARN = log.NewFlag("WARN", true, full, short, "bad things") + SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff") + + ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors") +} |
