2024-01-01 16:11:54 -06:00
|
|
|
package main
|
|
|
|
|
2024-01-08 21:19:42 -06:00
|
|
|
/*
|
|
|
|
this enables command line options from other packages like 'gui' and 'log'
|
|
|
|
*/
|
|
|
|
|
2024-01-01 16:11:54 -06:00
|
|
|
import (
|
2024-01-08 21:19:42 -06:00
|
|
|
log "go.wit.com/log"
|
2024-01-01 16:11:54 -06:00
|
|
|
)
|
|
|
|
|
2024-01-08 21:19:42 -06:00
|
|
|
var NOW log.LogFlag
|
|
|
|
var INFO log.LogFlag
|
2024-01-01 16:11:54 -06:00
|
|
|
|
2024-01-08 21:19:42 -06:00
|
|
|
var SPEW log.LogFlag
|
|
|
|
var WARN log.LogFlag
|
2024-01-01 16:11:54 -06:00
|
|
|
|
2024-01-08 21:19:42 -06:00
|
|
|
var ERROR log.LogFlag
|
|
|
|
var CHANGE log.LogFlag
|
|
|
|
var TOOLKIT 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")
|
2024-01-01 16:11:54 -06:00
|
|
|
|
2024-01-08 21:19:42 -06:00
|
|
|
ERROR.NewFlag("ERROR", false, full, short, "toolkit errors")
|
|
|
|
CHANGE.NewFlag("ERROR", false, full, short, "show when the user does things")
|
|
|
|
TOOLKIT.NewFlag("ERROR", false, full, short, "andlabs specific stuff")
|
2024-01-01 16:11:54 -06:00
|
|
|
}
|