2024-01-18 00:08:37 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var outputS []string
|
|
|
|
|
|
|
|
var NOW *log.LogFlag
|
|
|
|
var INFO *log.LogFlag
|
2024-02-09 03:45:03 -06:00
|
|
|
var GOCUI *log.LogFlag
|
2024-01-18 00:08:37 -06:00
|
|
|
|
|
|
|
var SPEW *log.LogFlag
|
|
|
|
var WARN *log.LogFlag
|
|
|
|
|
|
|
|
var ERROR *log.LogFlag
|
|
|
|
|
|
|
|
func init() {
|
2024-02-09 03:45:03 -06:00
|
|
|
full := "go.wit.com/gui"
|
2024-01-18 14:53:22 -06:00
|
|
|
short := "gocui"
|
2024-01-18 00:08:37 -06:00
|
|
|
|
2024-02-09 03:45:03 -06:00
|
|
|
GOCUI = log.NewFlag("GOCUI", false, full, short, "gocui internals")
|
|
|
|
|
|
|
|
full = "go.wit.com/toolkits/gocui"
|
|
|
|
short = "gocui"
|
|
|
|
|
2024-01-18 00:08:37 -06:00
|
|
|
NOW = log.NewFlag("NOW", true, full, short, "temp debugging stuff")
|
2024-01-28 21:15:15 -06:00
|
|
|
INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
|
2024-01-18 00:08:37 -06:00
|
|
|
|
|
|
|
WARN = log.NewFlag("WARN", true, full, short, "bad things")
|
|
|
|
SPEW = log.NewFlag("SPEW", false, full, short, "spew stuff")
|
|
|
|
|
2024-01-28 02:20:31 -06:00
|
|
|
ERROR = log.NewFlag("ERROR", true, full, short, "toolkit errors")
|
2024-01-18 00:08:37 -06:00
|
|
|
}
|