2024-02-12 21:42:02 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
/*
|
|
|
|
enables GUI options and the debugger in your application
|
|
|
|
*/
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/dev/alexflint/arg"
|
|
|
|
"go.wit.com/lib/debugger"
|
|
|
|
"go.wit.com/log"
|
|
|
|
)
|
|
|
|
|
|
|
|
var args struct {
|
2024-03-02 11:51:16 -06:00
|
|
|
Daemon bool `arg:"--daemon" help:"run without a gui"`
|
2024-02-12 21:42:02 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
arg.MustParse(&args)
|
|
|
|
|
|
|
|
if debugger.ArgDebug() {
|
|
|
|
log.Info("cmd line --debugger == true")
|
|
|
|
go func() {
|
|
|
|
log.Sleep(2)
|
|
|
|
debugger.DebugWindow()
|
|
|
|
}()
|
|
|
|
}
|
|
|
|
}
|