diff options
Diffstat (limited to 'gocui/args.go')
| -rw-r--r-- | gocui/args.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gocui/args.go b/gocui/args.go new file mode 100644 index 0000000..5ee05c4 --- /dev/null +++ b/gocui/args.go @@ -0,0 +1,32 @@ +package main + +/* + this enables command line options from other packages like 'gui' and 'log' +*/ + +import ( + log "go.wit.com/log" +) + +var outputS []string + +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") +} |
