summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-12 02:21:37 -0600
committerJeff Carr <[email protected]>2024-01-12 02:21:37 -0600
commitc070af1d9605fddb44d8028b1c9ec7a2786d8f1d (patch)
treeb442578a53f9795bdf02206baeffc9127a7a7932 /args.go
parentf3a5cd0db1575da22f4bc1d73f4acf53b7138462 (diff)
log api changev0.3.3
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'args.go')
-rw-r--r--args.go21
1 files changed, 8 insertions, 13 deletions
diff --git a/args.go b/args.go
index 986210d..ffc4376 100644
--- a/args.go
+++ b/args.go
@@ -7,8 +7,9 @@ import (
"go.wit.com/log"
)
-var INFO log.LogFlag
-var POLL log.LogFlag
+var NOW *log.LogFlag
+var INFO *log.LogFlag
+var POLL *log.LogFlag
var argDo ArgsDo
// This struct can be used with the go-arg package
@@ -18,16 +19,10 @@ type ArgsDo struct {
func init() {
arg.Register(&argDo)
+ full := "go.wit.com/gui/digitalocean"
+ short := "DOgui"
- INFO.B = false
- INFO.Name = "INFO"
- INFO.Subsystem = "digitalocean"
- INFO.Desc = "Enable log.Info()"
- INFO.Register()
-
- POLL.B = false
- POLL.Name = "POLL"
- POLL.Subsystem = "digitalocean"
- POLL.Desc = "Show droplet status polling"
- POLL.Register()
+ NOW = log.NewFlag( "NOW", true, full, short, "temp debugging stuff")
+ INFO = log.NewFlag("INFO", false, full, short, "normal debugging stuff")
+ INFO = log.NewFlag("POLL", false, full, short, "show droplet status polling")
}