diff options
| author | Jeff Carr <[email protected]> | 2024-01-08 20:17:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-08 20:17:49 -0600 |
| commit | 2a9724d7a89733db8c41571a8b5d9d0e1f0d76b3 (patch) | |
| tree | 471510c5d1bf2d12571c538b22686d2dcec5ff1f /nocui/args.go | |
| parent | 4a079f8346fb54a3f4b7e15c3d89701f643099ce (diff) | |
move to 'go.wit.com/log'
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'nocui/args.go')
| -rw-r--r-- | nocui/args.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nocui/args.go b/nocui/args.go new file mode 100644 index 0000000..07b3676 --- /dev/null +++ b/nocui/args.go @@ -0,0 +1,30 @@ +package main + +/* + this enables command line options from other packages like 'gui' and 'log' +*/ + +import ( + "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.NewFlag( "NOW", true, full, short, "temp debugging stuff") + INFO.NewFlag("INFO", false, full, short, "normal debugging stuff") + + WARN.NewFlag("WARN", true, full, short, "bad things") + SPEW.NewFlag("SPEW", false, full, short, "spew stuff") + + ERROR.NewFlag("ERROR", false, full, short, "toolkit errors") +} |
