summaryrefslogtreecommitdiff
path: root/args.go
diff options
context:
space:
mode:
Diffstat (limited to 'args.go')
-rw-r--r--args.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/args.go b/args.go
index 0711ba4..0f827c7 100644
--- a/args.go
+++ b/args.go
@@ -12,15 +12,11 @@ import (
"go.wit.com/log"
)
-// GadgetDisplay string `arg:"env:DISPLAY"`
-// GadgetTmpLog bool `arg:"--tmp-log" help:"automatically send STDOUT to /tmp"`
-// GadgetVerboseDNS bool `arg:"--verbose" help:"debug your dns settings"`
var args struct {
DownloadAll bool `arg:"--download-all" help:"download everything from go.wit.com"`
GitPull bool `arg:"--git-pull" help:"do git pull in every repository"`
CheckoutUser bool `arg:"--switch-to-user-branch" help:"switch everything to your user branch"`
CheckoutDevel bool `arg:"--switch-to-devel-branch" help:"switch everything to the devel branch"`
- TmpLog bool `arg:"--tmp-log" help:"automatically send STDOUT to /tmp"`
}
func init() {
@@ -28,7 +24,9 @@ func init() {
if debugger.ArgDebug() {
log.Info("cmd line --debugger == true")
- } else {
- log.Info("cmd line --debugger == false")
+ go func() {
+ log.Sleep(2)
+ debugger.DebugWindow()
+ }()
}
}